Index of /xen/cent7/ramfs

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -  
[DIR]with_cciss/06-Feb-2016 19:17 -  
[   ]initrd.img09-Apr-2015 13:26 33M 
[TXT]initrd.img.sha1.txt09-Apr-2015 13:46 53  
[TXT]ramfs_fix_c7.txt25-May-2015 20:15 2.0K 

Remaster the Initrd in the C7 1503 Installer

If you noticed that the C7 installer has missing network drivers, you will find it difficult to do kickstart or netboot installs. I setup this index to archive my approach to this. Here is the cmdline history and the repaired initrd I use with my old AMD motherboards.

Mailing List posts Reporting this Bug

[CentOS] nvidia ethernet port not detected centos 7 The bug appeared in release 7.0.1406 and is still present in 7.1.1503.

Adding the Drivers

I needed the forcedeth.ko and r8168.ko drivers, which are kindly packaged at elrepo. You can see their presence in the repaired ramfs here:
sudo lsinitrd ./initrd.img | grep -P 'deth.ko|168.ko' | awk '{print $9}'
usr/lib/modules/3.10.0-229.el7.x86_64/extra/forcedeth/forcedeth.ko usr/lib/modules/3.10.0-229.el7.x86_64/extra/r8168/r8168.ko usr/lib/modules/3.10.0-229.el7.x86_64/weak-updates/forcedeth/forcedeth.ko usr/lib/modules/3.10.0-229.el7.x86_64/weak-updates/r8168/r8168.ko

How to Remaster the ramfs

sudo file initrd.img
initrd.img: LZMA compressed data, streamed
This *.img is an xz compressed CPIO archive. The filesystem has to be uncompressed and extracted before we can repair it. See the cmdline history for the details.

How to Use the repaired ramfs

There at least two ways where you can drop in this initrd.img which I index. My method was a legacy grub netboot. The other way might be a usb flash key which boots via syslinux. There you can write over the default initrd.img too.

Legacy grub stanza to kickoff a netboot using the PXE kernel/ramdisk pair

cat >> /boot/grub/menu.lst<<'EOL' root (hd0,5) kernel /boot/pxe/vmlinuz net.ifnames=0 insmod=forcedeth.ko inst.ks=http://192.168.1.224/public/sda7c7-ks.cfg vga=794 nameserver=192.168.1.2 inst.text # must boot repaired ramfs initrd /boot/pxe/initrd.img EOL