You are not logged in.

#1 2024-08-24 01:18:58

authentic_user
Member
Registered: 2024-08-24
Posts: 1

Changing mkinitcpio.conf to use systemd rules renders system unbootabl

Hello,

For context, I am attempting to enroll my LUKS keys in my TPM using a freshly booted Arch Linux install from the archinstall script. I would like to do this because I find having to manually enter a password to unencrypt my drive tedious. Aside from LUKS, I am using the option for a Unified Kernel Image and separate home partition. According to the Arch Wiki, to enroll the LUKS keys in the TPM, I have to edit /etc/mkinitcpio.conf to use systemd hooks.

Here is the format I am using, with everything from Arch Wiki except lvm2 since I don"t use logical volume management:

base systemd autodetect microcode modconf kms keyboard sd-vconsole block sd-encrypt filesystems fsck

After writing the file, I use the command "sudo mkinitcpio -P" to refresh initramfs. At this point, if I reboot my system at any point, I am softlocked out of Arch Linux - I receive the following error:

Timed out waiting for device /dev/mapper/root.
Dependency failed for /sysroot.
Dependency failed for Initrd Root File System.
Dependency failed for Mountpoints Configured in the Real Root.
Dependency failed for Initrd Root Device.
Dependency failed for File System Check on /dev/mapper/root
Stopped Dispatch Password Requests to Console Directory Watch.
Stopped target Basic System
Stopped target Initrd File System
Stopped target System Initialization
Reached target Emergency Mode

I am then in emergency mode, except I can't do anything. This is because the console is inaccessible as the root account is locked.

I've been looking for solutions for some time now and would like to know how to fix this. I'm obviously missing something but I am a comparative newbie to Arch Linux so I'm completely stumped at this point.

Last edited by authentic_user (2024-08-24 01:26:52)

Offline

Board footer

Powered by FluxBB