mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Systemd based initramfs (should improve boot performances.
This commit is contained in:
parent
233ae169d1
commit
58133d4404
1 changed files with 7 additions and 4 deletions
11
easy-arch.sh
11
easy-arch.sh
|
|
@ -266,13 +266,16 @@ cat > /mnt/etc/hosts <<EOF
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Configuring /etc/mkinitcpio.conf.
|
# Configuring /etc/mkinitcpio.conf.
|
||||||
print "Configuring /etc/mkinitcpio.conf for LUKS hook."
|
print "Configuring /etc/mkinitcpio.conf."
|
||||||
sed -i -e 's,modconf block filesystems keyboard,keyboard keymap modconf block encrypt filesystems,g' /mnt/etc/mkinitcpio.conf
|
cat > /mnt/etc/mkinitcpio.conf <<EOF
|
||||||
|
HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt filesystems)
|
||||||
|
COMPRESSION=(zstd)
|
||||||
|
EOF
|
||||||
|
|
||||||
# Setting up LUKS2 encryption in grub.
|
# Setting up LUKS2 encryption in grub.
|
||||||
print "Setting up grub config."
|
print "Setting up grub config."
|
||||||
UUID=$(blkid $Cryptroot | cut -f2 -d'"')
|
UUID=$(blkid -s UUID -o value $Cryptroot)
|
||||||
sed -i "s,quiet,quiet cryptdevice=UUID=$UUID:cryptroot root=$BTRFS,g" /mnt/etc/default/grub
|
sed -i "s,quiet,quiet rd.luks.name=$UUID=cryptroot root=$BTRFS,g" /mnt/etc/default/grub
|
||||||
|
|
||||||
# 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