common: quote conditional for efivar mount

Prevents failures when the chroot base contains whitespace.
This commit is contained in:
Dave Reisner 2013-11-15 14:53:45 -05:00
parent c746f87fc3
commit 0270a2d3b9

2
common
View File

@ -76,7 +76,7 @@ api_fs_mount() {
mount_conditionally "! mountpoint -q '$1'" "$1" "$1" --bind &&
track_mount proc "$1/proc" -t proc -o nosuid,noexec,nodev &&
track_mount sys "$1/sys" -t sysfs -o nosuid,noexec,nodev,ro &&
mount_conditionally "[[ -d $1/sys/firmware/efi/efivars ]]" \
mount_conditionally "[[ -d '$1/sys/firmware/efi/efivars' ]]" \
efivarfs "$1/sys/firmware/efi/efivars" -t efivarfs -o nosuid,noexec,nodev &&
track_mount udev "$1/dev" -t devtmpfs -o mode=0755,nosuid &&
track_mount devpts "$1/dev/pts" -t devpts -o mode=0620,gid=5,nosuid,noexec &&