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 |
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
#This input: | |
infile = ''' | |
key0=0 | |
key1=1 | |
key1 = 1 | |
key2=2 # comment1 | |
#key3=3 | |
#key4=4 | |
#key5=5 # comment |