binary_rootfs: Fixed test for /etc/mtab (Closes: #1032408)

This commit is contained in:
Roland Clobus 2023-08-20 10:57:43 +02:00
parent d25826212a
commit d54ba390dd
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 1 additions and 1 deletions

View File

@ -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}
FAKE_MTAB=false
if ! Chroot chroot "test -s /etc/mtab"
if ! Chroot chroot "test -e /etc/mtab"
then
Chroot chroot "ln -s /proc/mounts/mtab /etc/mtab"
FAKE_MTAB=true