Hi all...

Trying to setup an LFS system to boot off a usb flashdisk, for use in
setting up on new hardware. Not a problem, other than one thing -
working out what device the rootfs should be on. Currently it's
configured in syslinux to use /dev/sda1, but I'd prefer something a
little more flexible given it's supposed to work on different hardware.

What I *could* do is something like the following command:

grep -l 'RunDisk' /sys/block/*/device/model |
        ( IFS=/ read -a foo; echo ${foo[3]} )

or some variant thereof. But I've no idea where it should be run from -
I understand an initramfs is the appropriate mechanism for running stuff
at this stage of bootup, but I don't know how to set one up. Can anyone
offer any pointers?

Simon.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to