scratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scratch [2019/03/09 17:21] – [LUKS] adminscratch [2019/03/10 13:03] (current) – [LUKS] admin
Line 191: Line 191:
   ###############################   ###############################
   ########### Encrypt ###########   ########### Encrypt ###########
 +  
   # Shrink root filesystem (NOT the partition)   # Shrink root filesystem (NOT the partition)
   sudo e2fsck -f $ROOTPART   sudo e2fsck -f $ROOTPART
Line 197: Line 197:
      
   # Encrypt   # Encrypt
-  sudo cryptsetup-reencrypt --type=luks2 --new --reduce-device-size 8M $ROOTPART   # or --type=luks1+  sudo cryptsetup-reencrypt --type=luks2 --new --reduce-device-size 4M $ROOTPART   # or --type=luks1
        
   # resize the filesystem to its original size   # resize the filesystem to its original size
Line 217: Line 217:
   HOOKS=(base systemd autodetect keyboard keymap sd-vconsole modconf block sd-encrypt filesystems fsck)   HOOKS=(base systemd autodetect keyboard keymap sd-vconsole modconf block sd-encrypt filesystems fsck)
      
-  # Backup old config files+  # Backup old config files and create new ones
   for f in /mnt/boot/loader/entries/*.conf; do sudo mv $f $f.bak; done   for f in /mnt/boot/loader/entries/*.conf; do sudo mv $f $f.bak; done
-   
-  # Set the content of the file /boot/loader/loader.conf, arch.conf and arch-fallback.conf: 
   echo -e "default arch\ntimeout 5\nconsole-mode max\n" | sudo dd of=/mnt/boot/loader/loader.conf   echo -e "default arch\ntimeout 5\nconsole-mode max\n" | sudo dd of=/mnt/boot/loader/loader.conf
   echo -e "title Arch Linux\nlinux /vmlinuz-linux\ninitrd /intel-ucode.img\ninitrd \   echo -e "title Arch Linux\nlinux /vmlinuz-linux\ninitrd /intel-ucode.img\ninitrd \
  • scratch.txt
  • Last modified: 2019/03/10 13:03
  • by admin