[systemd-commits] Makefile.am units/hwclock-load.service units/remount-rootfs.service units/systemd-kmsg-syslogd.socket units/systemd-random-seed-load.service.in units/systemd-remount-api-vfs.service.in

Lennart Poettering lennart at kemper.freedesktop.org
Mon Sep 27 18:18:31 PDT 2010


 Makefile.am                               |   21 ++++++++++++++++++---
 units/hwclock-load.service                |    2 +-
 units/remount-rootfs.service              |    3 ---
 units/systemd-kmsg-syslogd.socket         |    2 +-
 units/systemd-random-seed-load.service.in |    1 +
 units/systemd-remount-api-vfs.service.in  |    3 ---
 6 files changed, 21 insertions(+), 11 deletions(-)

New commits:
commit c0a1b6e92682facf74412ca77daeedcc60cb3115
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Sep 28 03:18:23 2010 +0200

    units: enable mount units by default and hook binary units into base.target instead of sysinit.target, leaving the latter for sysv compatibility

diff --git a/Makefile.am b/Makefile.am
index 342b2b2..6b30607 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -941,7 +941,7 @@ install-data-hook:
 		$(DESTDIR)$(systemunitdir) \
 		$(DESTDIR)$(sessionunitdir) \
 		$(DESTDIR)$(systemunitdir)/sockets.target.wants \
-		$(DESTDIR)$(systemunitdir)/sysinit.target.wants \
+		$(DESTDIR)$(systemunitdir)/basic.target.wants \
 		$(DESTDIR)$(systemunitdir)/shutdown.target.wants \
 		$(DESTDIR)$(systemunitdir)/local-fs.target.wants \
 		$(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
@@ -987,10 +987,17 @@ install-data-hook:
 		$(LN_S) ../hwclock-save.service hwclock-save.service && \
 		$(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
 	( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
-		rm -f systemd-update-utmp-shutdown.service \
+		rm -f systemd-remount-api-vfs.service \
+			remount-rootfs.service \
+			var-run.mount \
 			var-run.service \
+			var-lock.mount \
 			var-lock.service && \
+		$(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
+		$(LN_S) ../remount-rootfs.service remount-rootfs.service && \
+		$(LN_S) ../var-run.mount var-run.mount && \
 		$(LN_S) ../var-run.service var-run.service && \
+		$(LN_S) ../var-lock.mount var-lock.mount && \
 		$(LN_S) ../var-lock.service var-lock.service )
 	( cd $(DESTDIR)$(sessionunitdir) && \
 		rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
@@ -1027,7 +1034,7 @@ install-data-hook:
 	( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
 		rm -f remote-fs.target && \
 		$(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
-	( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
+	( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
 		rm -f dev-hugepages.automount \
 			dev-mqueue.automount \
 			proc-sys-fs-binfmt_misc.automount \
@@ -1135,3 +1142,11 @@ upload: all distcheck
 
 git-tag:
 	git tag "v$(VERSION)" -m "systemd $(VERSION)"
+
+# Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
+fedora: install
+	rm /lib/systemd/system/local-fs.target.wants/var-run.service
+	rm /lib/systemd/system/local-fs.target.wants/var-run.mount
+	rm /lib/systemd/system/local-fs.target.wants/var-lock.service
+	rm /lib/systemd/system/local-fs.target.wants/var-lock.mount
+	rm /lib/systemd/system/local-fs.target.wants/remount-rootfs.service
diff --git a/units/hwclock-load.service b/units/hwclock-load.service
index 85d56db..5285615 100644
--- a/units/hwclock-load.service
+++ b/units/hwclock-load.service
@@ -28,4 +28,4 @@ ExecStart=/sbin/hwclock --systz
 # system time as part of kernel setup.
 
 [Install]
-WantedBy=sysinit.target
+WantedBy=basic.target
diff --git a/units/remount-rootfs.service b/units/remount-rootfs.service
index 35a6ea0..089e8b5 100644
--- a/units/remount-rootfs.service
+++ b/units/remount-rootfs.service
@@ -15,6 +15,3 @@ Before=shutdown.target local-fs.target
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=/bin/mount / -o remount
-
-[Install]
-WantedBy=sysinit.target
diff --git a/units/systemd-kmsg-syslogd.socket b/units/systemd-kmsg-syslogd.socket
index 7487cd5..ace06fa 100644
--- a/units/systemd-kmsg-syslogd.socket
+++ b/units/systemd-kmsg-syslogd.socket
@@ -17,4 +17,4 @@ ListenDatagram=/dev/log
 SocketMode=0666
 
 [Install]
-WantedBy=sysinit.target
+WantedBy=basic.target
diff --git a/units/systemd-random-seed-load.service.in b/units/systemd-random-seed-load.service.in
index 087f7b6..93cba95 100644
--- a/units/systemd-random-seed-load.service.in
+++ b/units/systemd-random-seed-load.service.in
@@ -8,6 +8,7 @@
 [Unit]
 Description=Load Random Seed
 DefaultDependencies=no
+Wants=local-fs.target
 After=local-fs.target
 Conflicts=shutdown.target
 Before=shutdown.target
diff --git a/units/systemd-remount-api-vfs.service.in b/units/systemd-remount-api-vfs.service.in
index 2e19dbf..8ecf64f 100644
--- a/units/systemd-remount-api-vfs.service.in
+++ b/units/systemd-remount-api-vfs.service.in
@@ -15,6 +15,3 @@ Before=shutdown.target local-fs.target
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootlibexecdir@/systemd-remount-api-vfs
-
-[Install]
-WantedBy=sysinit.target


More information about the systemd-commits mailing list