After a power failure my Tumbleweed system won’t boot, as /sysroot is not mounted during boot. I can mount it manually from the emergency console and boot the system by calling systemctl start initrd-switch-root.
How can I fix the boot process so that I don’t have to manually mount my sysroot every time?
I’m using Tumbleweed, btrfs as my root fs and systemdboot
You fix whatever problem prevents automatic mounting. You have not provided any details so it is rather difficult to guess what could it be.
When dracut enters emergency shell it generates rdsosreport.txt. Upload this file to https://paste.opensuse.org/. You may want to boot with printk.devkmsg=on log_buf_len=16M kernel parameters to ensure all logs are captured.
I figured out the problem - it wasn’t software related, it was hardware. My SSD had started to fail and my EFI partition was partly corrupted. New SSD fitted, job done.