Fixed sed script
This commit is contained in:
parent
e87164ca5b
commit
b33929d72b
2 changed files with 2 additions and 7 deletions
|
@ -1,6 +0,0 @@
|
||||||
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,4 +34,5 @@ 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
|
||||||
|
|
||||||
CRYPT="cryptdevice=$(blkid | sed -n 's/.*nvme0n1p'$PART': \(.*\) TYPE.*/\1/p'):root root=/dev/mapper/root"
|
CRYPT="cryptdevice=$(blkid | sed -n 's/.*nvme0n1p'$PART': \(.*\) TYPE.*/\1/p'):root"
|
||||||
|
sed 's#GRUB_CMDLINE_LINUX_DEFAULT.*#GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel 3 '$CRYPT' root=/dev/mapper/root"#' /etc/default/grub
|
Loading…
Reference in a new issue