[systemd-devel] Debian patches, typo fixes

Santi Béjar santi at agolina.net
Thu Sep 9 16:28:07 PDT 2010


Hi *,

On Thu, Sep 9, 2010 at 2:22 PM, Jens Persson <xerxes2 at gmail.com> wrote:
> Try to put your check services in sysinit.target.wants and add
> After=sysinit.target to local-fs.target.

I've tried something like this. But first let me correct my report,
the patch breaking my boot is the one introducing a separated
fsck.target:

v9-8-gf10814d (units: Provide separate fsck.target for Debian, 2010-09-03)

I've applied this patch without success:

diff --git i/units/debian/fsck.target w/units/debian/fsck.target
index 5da9a4f..b4aaf5c 100644
--- i/units/debian/fsck.target
+++ w/units/debian/fsck.target
@@ -9,3 +9,5 @@

 [Unit]
 Description=File System Check
+Wants=checkroot.service checkfs.service
+After=checkroot.service checkfs.service

The ordering would be:

1) checkroot.service checkfs.service
2) fsck.target
3) home.mount

but the home partition is still mounted before checkfs is run.

Here it is the relevant info about these units:

$ systemctl show checkfs.service
Id=checkfs.service
Names=checkfs.service
WantedBy=sysinit.target fsck.target
Before=mountall.service sysinit.target fsck.target
After=checkroot.service mtab.service cryptdisks.service
Description=LSB: Check all filesystems.
...

$ systemctl show fsck.target
Id=fsck.target
Names=fsck.target
Wants=checkroot.service checkfs.service
ConflictedBy=shutdown.target
Before=tmp.mount media-cdrom0.mount home.mount
sys-fs-fuse-connections.mount lib-init-rw.mount
After=checkroot.service checkfs.service
Description=File System Check
...

$ systemctl show home.mount
Id=home.mount
Names=home.mount
Requires=dev-disk-by\x1duuid-7bea11bc\x1de5c6\x1d429b\x1d80b1\x1dac2763026e01.device
-.mount
WantedBy=local-fs.target
ConflictedBy=umount.target
Before=local-fs.target umount.target
After=dev-disk-by\x1duuid-7bea11bc\x1de5c6\x1d429b\x1d80b1\x1dac2763026e01.device
fsck.target -.mount
Description=/home
...

Thanks,
Santi


More information about the systemd-devel mailing list