Skip to content

Instantly share code, notes, and snippets.

@bonanza123
Last active August 5, 2017 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bonanza123/23b4afe9232ca1f3f1387db59ea603fa to your computer and use it in GitHub Desktop.
Save bonanza123/23b4afe9232ca1f3f1387db59ea603fa to your computer and use it in GitHub Desktop.
rebuild initramfs from live image
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