mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Add the key to mkinitcpio's config
This commit is contained in:
parent
a4d515776d
commit
8126c5a2c5
1 changed files with 1 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ dd bs=512 count=4 if=/dev/random of=/mnt/root/cryptroot.keyfile iflag=fullblock
|
||||||
chmod 000 /mnt/root/cryptroot.keyfile &>/dev/null
|
chmod 000 /mnt/root/cryptroot.keyfile &>/dev/null
|
||||||
cryptsetup -v luksAddKey /dev/disk/by-partlabel/Cryptroot /mnt/root/cryptroot.keyfile
|
cryptsetup -v luksAddKey /dev/disk/by-partlabel/Cryptroot /mnt/root/cryptroot.keyfile
|
||||||
sed -i -e "s,quiet,quiet cryptdevice=UUID=$UUID:cryptroot root=$BTRFS cryptkey=rootfs:/root/cryptroot.keyfile,g" /mnt/etc/default/grub
|
sed -i -e "s,quiet,quiet cryptdevice=UUID=$UUID:cryptroot root=$BTRFS cryptkey=rootfs:/root/cryptroot.keyfile,g" /mnt/etc/default/grub
|
||||||
|
sed -i 's#FILES=()#FILES=(/root/cryptroot.keyfile)#g' /mnt/etc/mkinitcpio.conf
|
||||||
|
|
||||||
# Configuring the system.
|
# Configuring the system.
|
||||||
arch-chroot /mnt /bin/bash -e <<EOF
|
arch-chroot /mnt /bin/bash -e <<EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue