Blob Blame History Raw
From 834f33440ff9890235908c46d1d24f4f72f0739c Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Fri, 17 Jan 2014 14:01:57 +0100
Subject: [PATCH] systemd/module-setup.sh: make use of "ln_r"

---
 modules.d/98systemd/module-setup.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
index a99c699d..511b883f 100755
--- a/modules.d/98systemd/module-setup.sh
+++ b/modules.d/98systemd/module-setup.sh
@@ -160,15 +160,15 @@ install() {
     egrep '^systemd-journal:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
     egrep '^systemd-journal:' /etc/group >> "$initdir/etc/group"
 
-    ln -fs $systemdutildir/systemd "$initdir/init"
-    ln -fs $systemdutildir/systemd "$initdir/sbin/init"
+    ln_r $systemdutildir/systemd "/init"
+    ln_r $systemdutildir/systemd "/sbin/init"
 
     inst_script "$moddir/dracut-emergency.sh" /bin/dracut-emergency
     inst_simple "$moddir/emergency.service" ${systemdsystemunitdir}/emergency.service
     inst_simple "$moddir/dracut-emergency.service" ${systemdsystemunitdir}/dracut-emergency.service
     inst_simple "$moddir/emergency.service" ${systemdsystemunitdir}/rescue.service
 
-    ln -fs initrd.target "${initdir}${systemdsystemunitdir}/default.target"
+    ln_r "${systemdsystemunitdir}/initrd.target" "${systemdsystemunitdir}/default.target"
 
     inst_script "$moddir/dracut-cmdline.sh" /bin/dracut-cmdline
     inst_script "$moddir/dracut-pre-udev.sh" /bin/dracut-pre-udev