I have installed Manjaro with CLI, systemd-boot, LUKS following a few guides like [HowTo] LUKS encrypted system using systemd-boot
Mainly followed Arch’s Installation Guide until needed otherwise.
Had tried installing multiple times on both main machine and VM, same error.
systemd[1]: Failed to mount /sysroot.
[FAILED] Failed to mount /sysroot.
See ‘sysctl status sysroot.mount’ for details.
[DEPEND] Dependency failed for Initrd Root File System.
[DEPEND] Dependency failed for Reload Configuration from the Real Root.
You are in emergency mode. After logging in,…
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Will be posting the settings of the VM as I had already wiped the main’s drive.
I don’t know - I see one thing - as you have used f2fs - you may have forgotten to add f2fs in the modules section of mkinitcpio.conf.
I also note that I didn’t mention that in the original guide - but since my encryption experiments are carried out using USB devices - I probably forgot to write it down - even though I may have used it.
If you omit configuring fstab - did you ensure the correct partition type is set on the root partition? 0x8304 for a 64-bit root partition
Other than the above I can’t see why it shouldn’t work.
Just spotted this - if the root account is locked - you may have forgotten to set a root password - and this is an important step for any Arch based system - as the arch defaults for the shadow file prevents login using passwordless root.
Hi @linux-aarhus! Sorry I forgot to mention, have already tried setting root password with passwd before and after chroot. Still shows that root account is locked. Will attempt the rest of your suggestions.
These message could be the cause of your issue - because if the modules are not in initramfs you will not be able to open the the encrypted root.
For the time being I have no spare time to play with encrypted installations - I am in neck deep in a project which requires a lot of my time - I will put it on my to-do-list - to recheck the guide.