Created
October 14, 2016 15:11
-
-
Save double-p/38a3b761bdac597469bfe9af97d3a8f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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