On Tue, May 21, 2024 at 10:10:02PM -0700, Benjamin Lee wrote:
> > It's probably the same issue with missing libraries, but I do not use
> > either dracut nor LVM so I cannot help, reassigning to dracut so that
> > you might get some help with debugging and finding out what the actual
> > issue is

I am rather sure it's not the libraries, as I have dracut -8.
> 
> It seems like the issue is that systemd 256 now makes /usr read-only in the
> initrd environment, but dracut depends on writing to /usr.
> 
> One workaround is to set ProtectSystem=no in the initrd, so that /usr is
> writable again.  I got my system (also LVM on LUKS) booting with a dracut
> module to write system.conf:
> 
> blee@r8 /usr/lib/dracut/modules.d/99local $ cat module-setup.sh
> #!/bin/bash
> 
> # called by dracut
> install() {
>     printf "[Manager]\nProtectSystem=no\n" >> 
> "${initdir}/etc/systemd/system.conf"
> }

Thanks! That worked, even if it looks like a gross hack. :)

In the meantime, I have found [1] over at Fedora, which I am going to
try next (as it is supposed to fix the same thing, but cleaner).

Evgeni

[1] 
https://src.fedoraproject.org/rpms/dracut/blob/rawhide/f/0019-fix-dracut-move-hooks-directory-from-usr-lib-to-var-.patch

Reply via email to