Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
scratch [2019/03/09 17:21] – [LUKS] admin | scratch [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 | + | sudo cryptsetup-reencrypt --type=luks2 --new --reduce-device-size |
# 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 / | for f in / | ||
- | | ||
- | # Set the content of the file / | ||
echo -e " | echo -e " | ||
echo -e "title Arch Linux\nlinux / | echo -e "title Arch Linux\nlinux / |