[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

BUG: mount with warning in lenny caused by PATH after root-mount



Hi!

With lenny i got a warning for

mount -o move /cow "${rootmnt}/live/cow"

mount: you must specify the filesystem type


but with

mount --move /cow "${rootmnt}/live/cow"

i got no warning


This is because chroot/usr/share/initramfs-tools/scripts/live exports

export
PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"

and after (root-mount) "maybe_break live-bottom" mount from /root/... is used instead
of mount from initramdisk.

And mount from /root/.. does not support "-o bind" and "-o move"

Also in /chroot/usr/share/initramfs-tools/init a mount -o is used.

cu Peter







Reply to: