Last active
August 5, 2017 11:56
-
-
Save bonanza123/23b4afe9232ca1f3f1387db59ea603fa to your computer and use it in GitHub Desktop.
rebuild initramfs from live image
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
cryptsetup luksOpen /dev/nvme0n1p4 root | |
mount /dev/system/root /mnt | |
mount /dev/nvme0n1p3 /mnt/boot/ | |
mount --bind /proc /mnt/proc | |
mount --bind /sys /mnt/sys | |
mount --bind /dev /mnt/dev | |
chroot /mnt | |
#check /etc/crypttab and compare with blkid | |
#https://wiki.centos.org/TipsAndTricks/CreateNewInitrd | |
dracut -f /boot/initrd-4.11.8-2-default 4.11.8-2-default | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment