Skip to content

Instantly share code, notes, and snippets.

@double-p
Created October 14, 2016 15:11
Show Gist options
  • Save double-p/38a3b761bdac597469bfe9af97d3a8f5 to your computer and use it in GitHub Desktop.
Save double-p/38a3b761bdac597469bfe9af97d3a8f5 to your computer and use it in GitHub Desktop.
mkdir /mnt/root/initrd-raid
mkinitrd -v --fstab=/mnt/etc/fstab /mnt/root/initrd-raid/initrd-`uname -r`-raid.img `uname -r`
[...]
cd /mnt/root/initrd-raid
zcat initrd-`uname -r`-raid.img | cpio -i
vi init
add 'raidautorun' for md1 and md2 below the entry for md0
find . -print | cpio -o -Hnewc | gzip -c > /mnt/boot/initrd-`uname -r`-raid.img
rm -f /mnt/boot/initrd-2.6-xen.img
ln -s initrd-`uname -r`-raid.img /mnt/boot/initrd-2.6-xen.img
vi /mnt/boot/extlinux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment