Blame 0077-systemd-module-setup.sh-ln-with-force.patch

Harald Hoyer 53e990
From 5e7bff1fee8f98a8444be56ca8b206ee32962a62 Mon Sep 17 00:00:00 2001
Harald Hoyer 53e990
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 53e990
Date: Fri, 22 Jun 2012 15:20:06 +0200
Harald Hoyer 53e990
Subject: [PATCH] systemd/module-setup.sh: ln with --force
Harald Hoyer 53e990
Harald Hoyer 53e990
---
Harald Hoyer 53e990
 modules.d/98systemd/module-setup.sh |   12 ++++++------
Harald Hoyer 53e990
 1 file changed, 6 insertions(+), 6 deletions(-)
Harald Hoyer 53e990
Harald Hoyer 53e990
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
Harald Hoyer 53e990
index 206f341..338f14d 100755
Harald Hoyer 53e990
--- a/modules.d/98systemd/module-setup.sh
Harald Hoyer 53e990
+++ b/modules.d/98systemd/module-setup.sh
Harald Hoyer 53e990
@@ -116,30 +116,30 @@ install() {
Harald Hoyer 53e990
 
Harald Hoyer 53e990
     inst "$moddir/initrd-switch-root.target" ${systemdsystemunitdir}/initrd-switch-root.target
Harald Hoyer 53e990
     inst "$moddir/initrd-switch-root.service" ${systemdsystemunitdir}/initrd-switch-root.service
Harald Hoyer 53e990
-    ln -s basic.target "${initdir}${systemdsystemunitdir}/default.target"
Harald Hoyer 53e990
+    ln -fs basic.target "${initdir}${systemdsystemunitdir}/default.target"
Harald Hoyer 53e990
 
Harald Hoyer 53e990
     mkdir -p "${initdir}${systemdsystemunitdir}/basic.target.wants"
Harald Hoyer 53e990
 
Harald Hoyer 53e990
     inst "$moddir/dracut-cmdline.sh" /bin/dracut-cmdline
Harald Hoyer 53e990
     inst "$moddir/dracut-cmdline.service" ${systemdsystemunitdir}/dracut-cmdline.service
Harald Hoyer 53e990
-    ln -s ../dracut-cmdline.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-cmdline.service"
Harald Hoyer 53e990
+    ln -fs ../dracut-cmdline.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-cmdline.service"
Harald Hoyer 53e990
 
Harald Hoyer 53e990
     inst "$moddir/dracut-pre-udev.sh" /bin/dracut-pre-udev
Harald Hoyer 53e990
     inst "$moddir/dracut-pre-udev.service" ${systemdsystemunitdir}/dracut-pre-udev.service
Harald Hoyer 53e990
-    ln -s ../dracut-pre-udev.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-pre-udev.service"
Harald Hoyer 53e990
+    ln -fs ../dracut-pre-udev.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-pre-udev.service"
Harald Hoyer 53e990
 
Harald Hoyer 53e990
     inst "$moddir/dracut-pre-trigger.sh" /bin/dracut-pre-trigger
Harald Hoyer 53e990
     inst "$moddir/dracut-pre-trigger.service" ${systemdsystemunitdir}/dracut-pre-trigger.service
Harald Hoyer 53e990
-    ln -s ../dracut-pre-trigger.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-pre-trigger.service"
Harald Hoyer 53e990
+    ln -fs ../dracut-pre-trigger.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-pre-trigger.service"
Harald Hoyer 53e990
 
Harald Hoyer 53e990
     inst "$moddir/dracut-initqueue.sh" /bin/dracut-initqueue
Harald Hoyer 53e990
     inst "$moddir/dracut-initqueue.service" ${systemdsystemunitdir}/dracut-initqueue.service
Harald Hoyer 53e990
-    ln -s ../dracut-initqueue.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-initqueue.service"
Harald Hoyer 53e990
+    ln -fs ../dracut-initqueue.service "${initdir}${systemdsystemunitdir}/basic.target.wants/dracut-initqueue.service"
Harald Hoyer 53e990
 
Harald Hoyer 53e990
     inst "$moddir/dracut-pre-pivot.sh" /bin/dracut-pre-pivot
Harald Hoyer 53e990
     inst "$moddir/dracut-pre-pivot.service" ${systemdsystemunitdir}/dracut-pre-pivot.service
Harald Hoyer 53e990
     mkdir -p "${initdir}${systemdsystemunitdir}/initrd-switch-root.target.wants"
Harald Hoyer 53e990
-    ln -s ../dracut-pre-pivot.service "${initdir}${systemdsystemunitdir}/initrd-switch-root.target.wants/dracut-pre-pivot.service"
Harald Hoyer 53e990
+    ln -fs ../dracut-pre-pivot.service "${initdir}${systemdsystemunitdir}/initrd-switch-root.target.wants/dracut-pre-pivot.service"
Harald Hoyer 53e990
 
Harald Hoyer 53e990
 }
Harald Hoyer 53e990