binary_rootfs: Fixed test for /etc/mtab (Closes: #1032408)
This commit is contained in:
parent
d25826212a
commit
d54ba390dd
|
@ -106,7 +106,7 @@ case "${LB_CHROOT_FILESYSTEM}" in
|
||||||
dd if=/dev/zero of=chroot/filesystem.${LB_CHROOT_FILESYSTEM} bs=1024k count=0 seek=${REAL_DIM}
|
dd if=/dev/zero of=chroot/filesystem.${LB_CHROOT_FILESYSTEM} bs=1024k count=0 seek=${REAL_DIM}
|
||||||
|
|
||||||
FAKE_MTAB=false
|
FAKE_MTAB=false
|
||||||
if ! Chroot chroot "test -s /etc/mtab"
|
if ! Chroot chroot "test -e /etc/mtab"
|
||||||
then
|
then
|
||||||
Chroot chroot "ln -s /proc/mounts/mtab /etc/mtab"
|
Chroot chroot "ln -s /proc/mounts/mtab /etc/mtab"
|
||||||
FAKE_MTAB=true
|
FAKE_MTAB=true
|
||||||
|
|
Loading…
Reference in New Issue