Skip to content
Snippets Groups Projects
Commit 90a0b59e authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

mounting efivarfs in EFI environment

parent e805979e
No related branches found
No related tags found
No related merge requests found
...@@ -66,11 +66,21 @@ runChroot(){ ...@@ -66,11 +66,21 @@ runChroot(){
mount devpts /target/dev/pts -t devpts mount devpts /target/dev/pts -t devpts
mount none /target/proc -t proc mount none /target/proc -t proc
mount none /target/sys -t sysfs mount none /target/sys -t sysfs
if [ -d /sys/firmware/efi ];
then
mount none /target/sys/firmware/efi/efivars -t efivarfs
fi
LANG=C.UTF-8 chroot /target $1 LANG=C.UTF-8 chroot /target $1
if [ -d /sys/firmware/efi ];
then
umount /target/sys/firmware/efi/efivars
fi
umount /target/sys umount /target/sys
umount /target/proc umount /target/proc
umount /target/dev/pts umount /target/dev/pts
umount /dev /target/dev umount /target/dev
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment