Skip to content

Instantly share code, notes, and snippets.

@RafiKueng
Created January 2, 2017 20:32
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 RafiKueng/530bc839e5a2721fefba548b897a5a9f to your computer and use it in GitHub Desktop.
Save RafiKueng/530bc839e5a2721fefba548b897a5a9f to your computer and use it in GitHub Desktop.
#!/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
@RafiKueng
Copy link
Author

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:

hid
usbhid
hid_generic
ohci_pci

to /etc/initramfs-tools/modules . and then run update-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 /"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment