[systemd-devel] [PATCH] fstab-generator: When parsing the root= cmdline option, set FsckPassNo to 1

Thomas Bächler thomas at archlinux.org
Fri Oct 4 02:34:44 PDT 2013


Am 01.10.2013 02:58, schrieb Lennart Poettering:
> Originally the intention was that root-fsck.service would run fsck for
> the root device, anf fsck at .service would be used for the rest. The
> difference is mostly one about ordering, i.e. root-fsck.service is the
> only one that is fine with the fs being already mounted.
> 
> Now, if we have the initrd, then I figure root-fsck.service doesn't make
> much sense, but there's something missing I think: if we use
> fsck at .service for the root device, how do we then communicate to the
> root-fsck.service on the host that the file system has already been
> checked? How is that supposed to work?
> 
> Harald? What is the idea here?

Can we get some decision here? Right now, we don't get root fsck'ed with
'rw' on the command line, which is worse than fsck'ing twice in the 'ro'
case.

Colin had the great idea that we drop mask root-fsck.service in
/run/systemd/system/ when we run fsck in initrd. For example, the initrd
generator could add a service to the initrd that creates the symlink and
a .d snippet that makes systemd-fsck at .service require it. This would
work without complex changes to the systemd core and hopefully cover all
cases.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20131004/572720c3/attachment.pgp>


More information about the systemd-devel mailing list