Created
January 2, 2017 20:32
-
-
Save RafiKueng/530bc839e5a2721fefba548b897a5a9f to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
sudo cryptsetup luksOpen /dev/sda3 sda3_crypt | |
sudo mount /dev/mapper/sda3 /mnt | |
sudo mount /dev/sda2 /mnt/boot | |
sudo mount /dev/sda1 /mnt/boot/efi | |
for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /mnt/$dir; done | |
sudo mount -o bind /etc/resolv.conf /mnt/etc/resolv.conf | |
sudo chroot /mnt /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to update my initram-fs, but if fails.
I'm on a fresh install of debian jessie, using EFI and full disk encryption. After the first boot, the keyboard works in GRUB, but not to enter my crypto psw. I read up and found that I should add:
to
/etc/initramfs-tools/modules
. and then runupdate-initramfs -u
So i fired up a live stick, unlocked my disk, chrooted into the box (using the commands in the gist) and made the change. Unfortunately, the
update-initramfs -u
command fails due to "mkinitramfs: failed to determine device for /
"