Also umount efivars

This commit is contained in:
Waqar Ahmed
2025-09-07 05:09:45 +05:00
parent 7efb9ce3fd
commit 3e75f10891

View File

@@ -36,6 +36,8 @@ def umount_chroot_basedir():
for command in (
['umount', '-f', PACKAGE_PATH],
['umount', '-f', os.path.join(CHROOT_BASEDIR, 'proc')],
# Need to unmount efivarfs before sys (automatically mounted under sys)
['umount', '-f', os.path.join(CHROOT_BASEDIR, 'sys/firmware/efi/efivars')],
['umount', '-f', os.path.join(CHROOT_BASEDIR, 'sys')],
):
run(command, check=False, log=False)