From: Stefan Schantl Date: Sun, 22 Apr 2012 13:29:04 +0000 (+0200) Subject: systemd: Fix installation of target and service files. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0976fbe45f23c2a74ed02661d778a0dc5e69166b;p=ipfire-3.x.git systemd: Fix installation of target and service files. 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. --- diff --git a/systemd/systemd.nm b/systemd/systemd.nm index 5e5a2f5c6..95bf4f744 100644 --- a/systemd/systemd.nm +++ b/systemd/systemd.nm @@ -5,7 +5,7 @@ name = systemd version = 44 -release = 3 +release = 4 maintainer = Stefan Schantl 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