This commit is contained in:
matt1432 2023-02-12 18:51:52 -05:00
parent 1953dca129
commit e87164ca5b
2 changed files with 7 additions and 3 deletions

6
scripts/Untitled-1 Normal file
View file

@ -0,0 +1,6 @@
CRYPT="cryptdevice=$(blkid | sed -n 's/.*nvme0n1p'$PART': \(.*\) TYPE.*/\1/p'):root root=/dev/mapper/root"
sed 's/GRUB_CMDLINE_LINUX_DEFAULT.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel 3 $CRYPT"/' /etc/default/grub
$(blkid | sed -n 's/.*nvme0n1p'$PART': \(.*\) TYPE.*/\1/p')

View file

@ -34,6 +34,4 @@ mkinitcpio -P
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch
cat << EOF >> /etc/default/grub CRYPT="cryptdevice=$(blkid | sed -n 's/.*nvme0n1p'$PART': \(.*\) TYPE.*/\1/p'):root root=/dev/mapper/root"
cryptdevice=$(blkid | sed -n 's/.*nvme0n1p'$PART': \(.*\) TYPE.*/\1/p'):root root=/dev/mapper/root
EOF