]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
systemd: Fix installation of target and service files.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Apr 2012 13:29:04 +0000 (15:29 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Apr 2012 13:29:04 +0000 (15:29 +0200)
There was a typo in old installation process, so the wrong target files
have been removed. As a result of this, the system started with no additional services,
gettys and also the rootfs was read-only mounted.

Fixes #10093.

systemd/systemd.nm

index 5e5a2f5c68ec3281792f396c3cdf63941ee3691e..95bf4f744132d65aee6e31538b32bd59c770c197 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = systemd
 version    = 44
-release    = 3
+release    = 4
 
 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
 groups     = System/Base
@@ -76,9 +76,10 @@ build
                cp -vf %{DIR_SOURCE}/{locale,vconsole}.conf %{BUILDROOT}%{sysconfdir}
 
                # Recreate all targets
-               rm -rfv %{BUILDROOT}%{unitdir}/*.target.wants
-               for i in basic.target.wants default.target.wants dbus.target.wants syslog.target.wants; do
-                       mkdir -pv %{BUILDROOT}%{unitdir}/${i} || exit 1
+               rm -rfv %{BUILDROOT}/%{sysconfdir}/systemd/system/*.target.wants
+               for i in basic.target.wants default.target.wants dbus.target.wants getty.target.wants \
+                       multi-user.target.wants syslog.target.wants; do
+                               mkdir -pv %{BUILDROOT}/%{sysconfdir}/systemd/system/${i} || exit 1
                done
 
                # Remove runlevel targets and graphical.target