Re: Fedora 27 kernel updates make system unbootable (sort of)

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

 



On Di, 24.04.18 11:36, Chris Murphy (lists@xxxxxxxxxxxxxxxxx) wrote:

> Note that fsync() is actually insufficient at least some of the time
> on all journaled file systems. e.g. dracut -f only does fsync() on the
> copied over initramfs to /boot and that new initramfs is often not
> seen by the bootloader for journaled file systems. Instead, the
> bootloader sees the old initramfs that had been deleted, which during
> boot (if successful) replays the log and completes the delete of old
> initramfs, and now the new one appears and isused at next boot. Other
> combinations are possible.

BTW, just to mention this: by default, if you let systemd mount the
EFI ESP for you then it will do that as automount point, meaning after
a few seconds of not accessing the ESP it will be unmounted
again. This means during normal operation the ESP won't be mounted at
all, and it will only be mounted (and thus potentially be in a dirty
state) for a very short time window around actual accesses, even
though it appears available all the time due to the automount logic.

Quite frankly, I think it would be a good idea, to just drop the
seperate /boot stuff, and simply place the kernel+initrd directly in
the ESP, and let systemd do its automount magic on it. That has the
benefit that the firmware groks the file system as well as our kernel
does, and that we do our best to keep the fs in the cleanest state
possible. In addition it's a much simpler approach, as we just reuse
the stuff already there and don't invent anything complex new.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux