Created
May 13, 2014 05:23
-
-
Save hihellobolke/3d22ac381fd23097089c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # : 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