mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Update easy-arch.sh
This commit is contained in:
parent
3ae6f8735e
commit
aa4edb94f1
1 changed files with 3 additions and 1 deletions
|
|
@ -109,10 +109,12 @@ EOF
|
||||||
echo "Configuring /etc/mkinitcpio.conf for LUKS hook."
|
echo "Configuring /etc/mkinitcpio.conf for LUKS hook."
|
||||||
sed -i -e 's,modconf block filesystems keyboard,keyboard keymap modconf block encrypt filesystems,g' /mnt/etc/mkinitcpio.conf
|
sed -i -e 's,modconf block filesystems keyboard,keyboard keymap modconf block encrypt filesystems,g' /mnt/etc/mkinitcpio.conf
|
||||||
|
|
||||||
# Enabling LUKS in GRUB and setting the UUID of the LUKS container.
|
# Enabling LUKS in GRUB, setting up the UUID of the LUKS container and enabling boot on BTRFS.
|
||||||
UUID=$(blkid $Cryptroot | cut -f2 -d'"')
|
UUID=$(blkid $Cryptroot | cut -f2 -d'"')
|
||||||
sed -i 's/#\(GRUB_ENABLE_CRYPTODISK=y\)/\1/' /mnt/etc/default/grub
|
sed -i 's/#\(GRUB_ENABLE_CRYPTODISK=y\)/\1/' /mnt/etc/default/grub
|
||||||
sed -i -e "s,quiet,quiet cryptdevice=UUID=$UUID:cryptroot root=$BTRFS,g" /mnt/etc/default/grub
|
sed -i -e "s,quiet,quiet cryptdevice=UUID=$UUID:cryptroot root=$BTRFS,g" /mnt/etc/default/grub
|
||||||
|
echo "# Booting with BTRFS subvolume" >> /mnt/etc/default/grub
|
||||||
|
echo "GRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION=true" >> /mnt/etc/default/grub
|
||||||
|
|
||||||
# Creating a swapfile.
|
# Creating a swapfile.
|
||||||
read -r -p "Do you want a swapfile? [y/N]? " response
|
read -r -p "Do you want a swapfile? [y/N]? " response
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue