Hi
according to this thread
http://www.linuxquestions.org/questi...51#post3043051
there is the suggestion that grub will fail if you are using an initrd images that lack UUID.
I tested my grub with Mdv and of course it works.
I am now looking at the unpack of my initrd and here is how I did it that may help others test their own unpack.
My main question is at the end
----------------------------------------------------
Old initial ram disk images may have used loopback devices, mine is cpio archive that is gunzipped.
pwd....response is /home/gordy
cp /boot/initrd.img /home/gordy/ (or whatever the real initrd is, not a symbolic file)
mkdir /home/gordy/unpack
su (or use sudo )
cd /home/gordy/unpack/
gzip -dc /home/gordy/initrd.img | cpio -id
---------short explain...ref man gzip and man cpio---------------
gzip -dc
-d = decompress
c = to standard out
/home/gordy/initrd.img = our copied initrd image that is not a symbolic link
| = pipe the output you just achieved to cpio
cpio
-i = extract using copy-in mode = copy files out of archive
d = create any relevant directories
---------------------------------------------------------------
our new unpack has some new folders : bin/ dev/ etc/ lib/ proc/ sbin@ sys/ sysroot/
and files /bootsplash /init
with folder sbin/ a symbolic link to bin/
empty folders are....proc/ sys/ sysroot/
----------------------------------------------------------------------------------------------
contents of /home/gordy/unpack/lib
libata.ko
sata_via.ko
scsi_mod.ko
scsi_wait_scan.ko
sd_mod.ko
xfs.ko
content of nash
#!/bin/nash
echo "Loading scsi_mod.ko module"
insmod /lib/scsi_mod.ko
echo "Loading libata.ko module"
insmod /lib/libata.ko
echo "Loading sata_via.ko module"
insmod /lib/sata_via.ko
echo "Loading sd_mod.ko module"
insmod /lib/sd_mod.ko
echo "Loading scsi_wait_scan.ko module"
insmod /lib/scsi_wait_scan.ko
echo "Loading xfs.ko module"
insmod /lib/xfs.ko
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Mounting sysfs
mount -t sysfs none /sys
echo Creating device files
mountdev size=32M,mode=0755
mkdevices /dev
echo Creating root device
mkrootdev /dev/root
resume
echo 1 > /sys/power/suspend2/do_resume
echo 1 > /sys/power/tuxonice/do_resume
echo Mounting root filesystem /dev/root with flags relatime
mount -o relatime --ro -t xfs /dev/root /sysroot
echo Switching to new root
switchroot --movedev /sysroot
echo Initrd finished
---------------------------------------------------------
Credit
the gzip and cpio command I grabbed from
http://www.linuxjournal.com/article/9452
Tech Tips with Gnull and Voyd
-----------------------------------------------------------
Comment
AFAIK there is no UUID support in the initrd.
Can not find uuid in my /boot/config
Questions
1) what is the correct search term for UUID in the kernel?
2) Do you agree that grub can boot with a kernel line that has a root UUID line...with an initrd that does not have UUID support?
many thanks and any feedback is appreciated.
-----
If I solve this I hope to update my howto on grub which is a outdated.