summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
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