Skip to content

Instantly share code, notes, and snippets.

@hihellobolke
Created May 13, 2014 05:23
Show Gist options
  • Select an option

  • Save hihellobolke/3d22ac381fd23097089c to your computer and use it in GitHub Desktop.

Select an option

Save hihellobolke/3d22ac381fd23097089c to your computer and use it in GitHub Desktop.
# : Lets mount everything inside the new rootvol
# mount /dev/rootvg/varvol /mnt/new/root/var
# mount /dev/sda1 /mnt/new/root/boot
# mount -o bind /dev /mnt/new/root/dev
# mount -t sysfs sys /mnt/new/root/sys
# mount -t procfs none /mnt/new/root/proc
# : Chrooting now..
# chroot /mnt/new/root
# : inspect if lvm & btrfs is present in intramfs
# lsinitrd /boot/initramfs-3.14.* | grep -e ^lvm -e ^btrfs
#
# : There’s none of those modules so we will add em...
# vi /etc/dracut.conf
...
# dracut modules to add to the default
add_dracutmodules+="lvm btrfs”
...
:wq!
# : Regenerating initramfs for my kernel v3.14.3-200
# cd /boot && dracut --force initramfs-3.14.3-200.fc20.x86_64.img vmlinuz-3.14.3-200.fc20.x86_64
# lsinitrd /boot/initramfs-3.14.3-200.fc20.x86_64.img | grep -e ^btrfs -e ^lvm
btrfs
lvm
# : Update grub
# grub2-install /dev/sda
# grub2-mkconfig -o /boot/grub2/grub.cfg
# sync ; sync ; exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment