best way to distribute lfs to other systems
chris at stockwith.co.uk
Fri Apr 23 13:07:28 PDT 2004
Duane Cox wrote:
> Well I am stumped on one thing...
> I have a linuxrc file based from the hint easy lfs boot cd
> it executes fine, until it gets to the last part of the script that
> executes pivot_root
> the script fails with "no such file or dir"
> but it's in /sbin ( I even copied it to /bin) but that didn't work. I echo
> the path in linux rc and it is correct.
> Any ideas?
> if [ "$CDROM_DEVICE" = "" ]; then
> echo "Could not mount cdrom. Exiting..."
> exit 1
> echo "Booting from $CDROM_DEVICE"
> mount -n -o ro -t iso9660 $CDROM_DEVICE $TMP_MOUNT
> cd $TMP_MOUNT
> pivot_root . mnt
pivot_root . /mnt
> umount -n /mnt/proc >/dev/null 2>&1
> exec /sbin/chroot . sh -c 'umount -n /mnt >/dev/null 2>&1;\
> exec -a init.new /sbin/init 3'\
> <dev/console >dev/console 2>&1
More information about the blfs-support