From 52fb9f021d4e8137351360ad3922a44fa3815b92 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Mon, 28 Nov 2011 12:36:37 +0100 Subject: suse12.1 - systemd stuff cont. --- src/initramfs/distro-specs/suse/functions-12.1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/initramfs') 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 -- cgit v1.2.3-55-g7522