|
@@ -31,7 +31,7 @@ mkinitcpio -P
|
|
root_uuid="$(grep ext4 /etc/fstab | sed 's/^UUID=//; s/\s\/.*$//')"
|
|
root_uuid="$(grep ext4 /etc/fstab | sed 's/^UUID=//; s/\s\/.*$//')"
|
|
drive2_uuid="$(blkid | grep "$DRIVE"2 | tr ' ' '\n' | grep ^UUID= | sed 's/^UUID="//; s/"//')"
|
|
drive2_uuid="$(blkid | grep "$DRIVE"2 | tr ' ' '\n' | grep ^UUID= | sed 's/^UUID="//; s/"//')"
|
|
|
|
|
|
-echo "BOOT_IMAGE=/boot/vmlinuz-linux-hardened root=UUID=$root_uuid rw cryptdevice=$drive2_uuid:cryptroot loglevel=0 quiet udev.log_level=3" > /etc/kernel/cmdline
|
|
|
|
|
|
+echo "BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=$root_uuid rw cryptdevice=$/dev/sda2:cryptroot loglevel=0 quiet udev.log_level=3" > /etc/kernel/cmdline
|
|
chmod +w /etc/kernel/cmdline
|
|
chmod +w /etc/kernel/cmdline
|
|
|
|
|
|
sb_status="$(sbctl status)"
|
|
sb_status="$(sbctl status)"
|
|
@@ -41,8 +41,8 @@ echo "$sb_status" | grep "^Vendor Keys:" | grep -q "none" || error_exit "Error:
|
|
|
|
|
|
sbctl bundle -s \
|
|
sbctl bundle -s \
|
|
-a /boot/amd-ucode.img \
|
|
-a /boot/amd-ucode.img \
|
|
- -k /boot/vmlinuz-linux-hardened \
|
|
|
|
- -f /boot/initramfs-linux-hardened.img \
|
|
|
|
|
|
+ -k /boot/vmlinuz-linux\
|
|
|
|
+ -f /boot/initramfs-linux.img \
|
|
-c /etc/kernel/cmdline \
|
|
-c /etc/kernel/cmdline \
|
|
/efi/EFI/Linux/ArchBundle.efi
|
|
/efi/EFI/Linux/ArchBundle.efi
|
|
|
|
|
|
@@ -56,6 +56,6 @@ efibootmgr --create \
|
|
--label "videopc signed efi bundle" \
|
|
--label "videopc signed efi bundle" \
|
|
--loader /EFI/Linux/ArchBundle.efi
|
|
--loader /EFI/Linux/ArchBundle.efi
|
|
|
|
|
|
-mkinitcpio -p linux
|
|
|
|
|
|
+mkinitcpio -P
|
|
|
|
|
|
rm drive
|
|
rm drive
|