> ----- Original Message -----
> From: "Simon Geard" <[EMAIL PROTECTED]>
> To: "BLFS Support List" <[email protected]>
> Subject: initramfs setup?
> Date: Sat, 30 Jun 2007 18:21:48 +1200
> 
> 
> 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.

Initramfs is a cpio archive, see the kernel docs.
But I would mount that thing by label, eg 
mount LABEL="LFS-stick" /
It supports ext2/3 labels. But that would work always, not depending on the 
device..

Lauri

-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze
-- 
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