initramfs
cpio’s block skipping sucks ass.
dracut will automatically gzip your initramfs, so things look awry if you rebuild and it looks like this
1 | root(root)@qcow1 [modules]# /sbin/dracut -M -f -k /lib/modules/3.10.0-123.20.1.el7.x86_64 /root/buttholes.img 3.10.0-123.20.1.el7.x86_64 |
Then try to inspect it1
2
3
4
5
6
7
8root(root)@qcow1 [~]# cpio -itd < buttholes.img
.
early_cpio
kernel
kernel/x86
kernel/x86/microcode
kernel/x86/microcode/GenuineIntel.bin
58 blocks
Not gzipped, a whopping 58 blocks, and only contains the GenuineIntel.bin.
Use dd to skip the first x blocks of non gzip’d data to view the rest of the initramfs
1 | root(root)@qcow1 [~]# mkdir ish; mv buttholes.img ish; cd ish |
Rebuild initramfs1
dracut -M -f -k /boot/initramfs-$(uname -r).img $(uname -r)