summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-11-28 12:36:37 +0100
committerSebastian Schmelzer2011-11-28 12:36:37 +0100
commit52fb9f021d4e8137351360ad3922a44fa3815b92 (patch)
treeb5aecafa7023c65696fbfe25d83063e1c5500d03 /src/initramfs
parentMerge branch 'master' of openslx.org:openslx/core (diff)
downloadcore-52fb9f021d4e8137351360ad3922a44fa3815b92.tar.gz
core-52fb9f021d4e8137351360ad3922a44fa3815b92.tar.xz
core-52fb9f021d4e8137351360ad3922a44fa3815b92.zip
suse12.1 - systemd stuff cont.
Diffstat (limited to 'src/initramfs')
-rw-r--r--src/initramfs/distro-specs/suse/functions-12.19
1 files changed, 7 insertions, 2 deletions
diff --git a/src/initramfs/distro-specs/suse/functions-12.1 b/src/initramfs/distro-specs/suse/functions-12.1
index bb275ef8..399d703d 100644
--- a/src/initramfs/distro-specs/suse/functions-12.1
+++ b/src/initramfs/distro-specs/suse/functions-12.1
@@ -28,9 +28,14 @@ config_distro () {
rm -rf /mnt/etc/init.d*
touch /mnt/var/log/btmp
touch /mnt/var/log/lastlog
-for file in systemd-hostnamed.service dbus-org.freedesktop.hostname1.service \
+SERVICES="systemd-hostnamed.service dbus-org.freedesktop.hostname1.service \
remount-rootfs.service avahi-dnsconfd.service fsck* \
- Network* postfix*; do /mnt/lib/systemd/system/${file}
+ Network* postfix*";
+# translate wildcards
+SERVICES=$(cd /mnt/systemd/system/ && ls -1 $SERVICES)
+for file in $SERVICES;
+do
+ ln -sf /dev/null /mnt/etc/systemd/system/${file}
done
# enable magic sysrequest for the clients