functions: 'sys/firmware/efi/efivars' must be removed before unmounting /sys

Change-Id: Ic9d2cf40fd6ddfb40a7715983b3b3ae36b93d9df
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
Dongjin Kim
2024-03-15 12:45:43 +09:00
parent feecc4b850
commit 4cc80ed0cd

View File

@@ -8,7 +8,7 @@ do_unmount() {
unmount_error=""
echo "I: unmounting pseudo directories in ${rootfs_mnt}..."
dirs="sys proc dev/pts dev boot"
dirs="sys/firmware/efi/efivars sys proc dev/pts dev boot"
for dir in ${dirs}; do
mountpoint -q ${rootfs_mnt}/${dir} 2>/dev/null \
&& { umount ${rootfs_mnt}/${dir} \