fix: encrypt module and grub crypttodisk
This commit is contained in:
parent
9d1c143cac
commit
c6ceeae593
7
base.sh
7
base.sh
@ -40,9 +40,7 @@ echo "$username:$user_passwd" | chpasswd
|
|||||||
sed -i '/^# %wheel\s\+ALL=(ALL:ALL)\s\+ALL/s/^#\s*//' /etc/sudoers
|
sed -i '/^# %wheel\s\+ALL=(ALL:ALL)\s\+ALL/s/^#\s*//' /etc/sudoers
|
||||||
|
|
||||||
# drivers
|
# drivers
|
||||||
if blkid | grep -q LUKS; then
|
sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf
|
||||||
sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$(lscpu | grep Vendor)" in
|
case "$(lscpu | grep Vendor)" in
|
||||||
*AuthenticAMD*)
|
*AuthenticAMD*)
|
||||||
@ -55,8 +53,7 @@ esac
|
|||||||
./gpu.sh
|
./gpu.sh
|
||||||
|
|
||||||
# Bootloader
|
# Bootloader
|
||||||
sed -i '/GRUB_DISABLE_OS_PROBER=/s/.*/GRUB_DISABLE_OS_PROBER=false/
|
sed -i '/GRUB_DISABLE_OS_PROBER=/s/.*/GRUB_DISABLE_OS_PROBER=false/' /etc/default/grub
|
||||||
/GRUB_ENABLE_CRYPTODISK=/s/.*/GRUB_ENABLE_CRYPTODISK=y/' /etc/default/grub
|
|
||||||
|
|
||||||
if [ -n "$grub_timeout" ]; then
|
if [ -n "$grub_timeout" ]; then
|
||||||
sed -i "/GRUB_TIMEOUT=/s/.*/GRUB_TIMEOUT=$grub_timeout/" /etc/default/grub
|
sed -i "/GRUB_TIMEOUT=/s/.*/GRUB_TIMEOUT=$grub_timeout/" /etc/default/grub
|
||||||
|
Loading…
Reference in New Issue
Block a user