|
|
966cef |
From 8914b61b0128f38fcda46c01dd96139201d932d4 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
|
|
|
966cef |
index a99c699..511b883 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
|