Re: System hang during boot and dracut-pre-mount-hooks processing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 22 Oct 2022 09:06:03 -0700
stan via test <test@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, 21 Oct 2022 21:16:48 +0000 (UTC)
> George R Goffe via test <test@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> > Hi,
> > 
> > I just installed a current kernel
> > (6.1.0-0.rc1.20221018gitbb1a1146467a.16). This kernel will not boot.
> > It appears to hang near the execution of dracut-pre-mount
> > processing. This process seems to be looking for a disk by uuid but
> > it NEVER completes. I let it go for over an hour but the system was
> > still effectively hung.
> > 
> > My fallback kernel is the release 5.18.0-0.rc7.54.fc37.x86_64. This
> > situation happened during early releases of this kernel series but
> > thien it just started working.
> > 
> > I have no ability (that I know of) to get a log of the boot attempt.
> > 
> > Is this a known problem? Is there a workaround?
> > 
> > Please help.  
> 
> I don't know if it is related, but I had, and continue to have, a
> problem on F37 with the 6.0 kernels when I build them locally.  The
> problem is that dracut doesn't put all the libraries needed by/for
> systemd into the initramfs when I install the kernel.  This also
> happens with Fedora stock kernels.  I had to write a parse program
> that scans the missing libraries and finds their latest installed
> version and then creates a dracut.conf that forces them to be
> included when I run dracut manually. I have not built a 6.1 kernel
> yet, as I usually wait for a few iterations (rc3 or so) to let things
> settle from all the changes, and create a rescue kernel from the
> newly released kernel.
> 
> You can immediately tell if this is your issue by going into /boot and
> doing an
> ls -n
> The initramfs for the failing kernel will be about half the size of
> that for the successful kernel, because of all the missing libraries.
> 
> I could find no reason for this to happen.  Everything was fully up to
> date, and the default dracut instructions to build the initramfs
> seemed to be the same as when it worked.  They directed that the
> libraries be installed, it just wasn't happening. So, since it wasn't
> a general problem (no one else was hitting it), I assumed it was some
> kind of corner case hitting my system, and created the workaround I
> describe above.

Duh, forgot to mention that the symptoms were identical to those you
are seeing.  It seemed to stop at exactly the moment when systemd was
being fired up, and it seemed to happen because it was unable to find
the root filesystem.  I, too, found no way to capture the early
messages.  I tried the dracut debug instructions which are supposed to
bring up a terminal with the errors logged with no effect.  I think
this problem slips between the cracks.  dracut isn't failing, it is
doing exactly what it is supposed to do, it is just that when the
system is transitioning from dracut to systemd, the root filesystem
isn't found because of the missing libraries.  Once I add them manually
to the initramfs, it works just like it should.

If this seems to be your problem, you can use the program lsinitrd to
examine the initramfs (it is usually compressed).  Pipe it to less and
check that libsystemd, libsystemd-core, and libsystemd-shared are there.
_______________________________________________
test mailing list -- test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to test-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/test@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux