[systemd-devel] no fsck at boot

Colin Guthrie gmane at colin.guthr.ie
Tue Jun 24 01:12:12 PDT 2014


'Twas brillig, and Chris Murphy at 23/06/14 23:15 did gyre and gimble:
>>> Yes this is a known problem. We should fix it, but it's not
>>> obvious to fix, since this fsck is actually run by the initrd,
>>> not the host system. There's currently no nice way to pass
>>> information about whether fsck for the rootfs is requested to the
>>> initrd via kernel cmdline params (there's only the global
>>> fsck.mode=, but that applies to all mounts, not just the root
>>> fs). And I do wonder if it really is desirable even hav this,
>>> after all we want to stay generic, and carry as little
>>> information possible into the initrd.
>
> For sure the fstab in my Rawhide initramfs contains nothing, it's
> empty. Therefore I'm assuming systemd could have no way of knowing
> what fs_passno is for root, until after root is ro mounted.

Well, the initramfs should mount the rootfs readonly, and then it can
read it's /etc/fstab (and the /forcefsck file) and determine if any
further action should be taken before doing any kind of pivotroot type
stuff to transition to the host OS. This should all be handled by your
initramfs really. Not sure what systemd bits do that in a systemd+dracut
combo tho', as not fiddled with it for a while!

Col



-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list