nixos-configs/scripts/Untitled-1

6 lines
278 B
Text
Raw Normal View History

2023-02-12 18:51:52 -05:00
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')