chroot_sysfs: umount efivarfs if mounted
Trying to umount /sys currently fails if efivarfs is mounted under it. Umount it first. Bug: #1053457
This commit is contained in:
parent
4832b6215d
commit
75d43b3394
|
@ -56,6 +56,12 @@ case "${_ACTION}" in
|
|||
# Acquire lock file
|
||||
Acquire_lockfile
|
||||
|
||||
# Unmounting /sys/firmware/efi/efivars
|
||||
if mountpoint -q chroot/sys/firmware/efi/efivars
|
||||
then
|
||||
umount chroot/sys/firmware/efi/efivars
|
||||
fi
|
||||
|
||||
# Unmounting /sys
|
||||
if [ -e chroot/sys/class ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue