Blame SOURCES/0078-systemd-module-setup.sh-make-use-of-ln_r.patch

a56a5e
From 834f33440ff9890235908c46d1d24f4f72f0739c Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Fri, 17 Jan 2014 14:01:57 +0100
966cef
Subject: [PATCH] systemd/module-setup.sh: make use of "ln_r"
966cef
966cef
---
966cef
 modules.d/98systemd/module-setup.sh | 6 +++---
966cef
 1 file changed, 3 insertions(+), 3 deletions(-)
966cef
966cef
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
1755ca
index a99c699d..511b883f 100755
966cef
--- a/modules.d/98systemd/module-setup.sh
966cef
+++ b/modules.d/98systemd/module-setup.sh
966cef
@@ -160,15 +160,15 @@ install() {
966cef
     egrep '^systemd-journal:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
966cef
     egrep '^systemd-journal:' /etc/group >> "$initdir/etc/group"
966cef
 
966cef
-    ln -fs $systemdutildir/systemd "$initdir/init"
966cef
-    ln -fs $systemdutildir/systemd "$initdir/sbin/init"
966cef
+    ln_r $systemdutildir/systemd "/init"
966cef
+    ln_r $systemdutildir/systemd "/sbin/init"
966cef
 
966cef
     inst_script "$moddir/dracut-emergency.sh" /bin/dracut-emergency
966cef
     inst_simple "$moddir/emergency.service" ${systemdsystemunitdir}/emergency.service
966cef
     inst_simple "$moddir/dracut-emergency.service" ${systemdsystemunitdir}/dracut-emergency.service
966cef
     inst_simple "$moddir/emergency.service" ${systemdsystemunitdir}/rescue.service
966cef
 
966cef
-    ln -fs initrd.target "${initdir}${systemdsystemunitdir}/default.target"
966cef
+    ln_r "${systemdsystemunitdir}/initrd.target" "${systemdsystemunitdir}/default.target"
966cef
 
966cef
     inst_script "$moddir/dracut-cmdline.sh" /bin/dracut-cmdline
966cef
     inst_script "$moddir/dracut-pre-udev.sh" /bin/dracut-pre-udev