lol2
This commit is contained in:
parent
1953dca129
commit
e87164ca5b
2 changed files with 7 additions and 3 deletions
6
scripts/Untitled-1
Normal file
6
scripts/Untitled-1
Normal 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')
|
|
@ -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
|
|
Loading…
Reference in a new issue