|
Harald Hoyer |
53e990 |
From 9d6458faa41039b6e63cf08bc60fc4660563597d 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:18:45 +0200
|
|
Harald Hoyer |
53e990 |
Subject: [PATCH] base/module-setup.sh: use --force for ln
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
---
|
|
Harald Hoyer |
53e990 |
modules.d/99base/module-setup.sh | 7 ++++---
|
|
Harald Hoyer |
53e990 |
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index 96c18ab..75afa72 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/99base/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/99base/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -24,6 +24,7 @@ install() {
|
|
Harald Hoyer |
53e990 |
#add common users in /etc/passwd, it will be used by nfs/ssh currently
|
|
Harald Hoyer |
53e990 |
egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo 'root:x:0:0::/root:/bin/sh' >> "$initdir/etc/passwd"
|
|
Harald Hoyer |
53e990 |
egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
|
|
Harald Hoyer |
53e990 |
+
|
|
Harald Hoyer |
53e990 |
# install our scripts and hooks
|
|
Harald Hoyer |
53e990 |
inst "$moddir/init.sh" "/init"
|
|
Harald Hoyer |
53e990 |
inst "$moddir/initqueue.sh" "/sbin/initqueue"
|
|
Harald Hoyer |
53e990 |
@@ -43,12 +44,12 @@ install() {
|
|
Harald Hoyer |
53e990 |
mkdir -p "${initdir}/var"
|
|
Harald Hoyer |
53e990 |
[ -x /lib/systemd/systemd-timestamp ] && inst /lib/systemd/systemd-timestamp
|
|
Harald Hoyer |
53e990 |
if [[ $realinitpath ]]; then
|
|
Harald Hoyer |
53e990 |
- for i in $realinitpath; do
|
|
Harald Hoyer |
53e990 |
+ for i in $realinitpath; do
|
|
Harald Hoyer |
53e990 |
echo "rd.distroinit=$i"
|
|
Harald Hoyer |
53e990 |
done > "${initdir}/etc/cmdline.d/distroinit.conf"
|
|
Harald Hoyer |
53e990 |
fi
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
- ln -s /proc/self/mounts "$initdir/etc/mtab"
|
|
Harald Hoyer |
53e990 |
+ ln -fs /proc/self/mounts "$initdir/etc/mtab"
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
if [ -e /etc/os-release ]; then
|
|
Harald Hoyer |
53e990 |
. /etc/os-release
|
|
Harald Hoyer |
53e990 |
@@ -74,5 +75,5 @@ install() {
|
|
Harald Hoyer |
53e990 |
echo ANSI_COLOR=\"$ANSI_COLOR\"
|
|
Harald Hoyer |
53e990 |
} > $initdir/etc/initrd-release
|
|
Harald Hoyer |
53e990 |
echo dracut-$DRACUT_VERSION > $initdir/lib/dracut/dracut-$DRACUT_VERSION
|
|
Harald Hoyer |
53e990 |
- ln -s initrd-release $initdir/etc/os-release
|
|
Harald Hoyer |
53e990 |
+ ln -sf initrd-release $initdir/etc/os-release
|
|
Harald Hoyer |
53e990 |
}
|