Skip to content

Instantly share code, notes, and snippets.

@skarllot
Last active August 29, 2015 14:25
Show Gist options
  • Save skarllot/488e145cda00ca7eb488 to your computer and use it in GitHub Desktop.
Save skarllot/488e145cda00ca7eb488 to your computer and use it in GitHub Desktop.
Create a new initrd (rescue CentOS 5)
mount --bind /proc /mnt/sysimage/proc
mount --bind /dev /mnt/sysimage/dev
mount --bind /sys /mnt/sysimage/sys
chroot /mnt/sysimage
cd /boot
mv initrd.img initrd.old.img
mkinitrd initrd-<ver>.img <ver>
cd /
sync; sync; sync
telinit 6
# Xen
mkinitrd --with-xenblk ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment