summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-01-30 01:08:34 +0100
committerDirk von Suchodoletz2007-01-30 01:08:34 +0100
commit177fe09cfbc4025e9dd3c1a0aebc1af3f959a3a7 (patch)
treee4478a9800aafa3a83983efa1d97beb68b192e63 /initramfs/initrd-stuff/init
parentAdded exclusion of runlevel links to init (tar in bind mount scenario to (diff)
downloadcore-177fe09cfbc4025e9dd3c1a0aebc1af3f959a3a7.tar.gz
core-177fe09cfbc4025e9dd3c1a0aebc1af3f959a3a7.tar.xz
core-177fe09cfbc4025e9dd3c1a0aebc1af3f959a3a7.zip
cmd == ""
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@652 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-xinitramfs/initrd-stuff/init4
1 files changed, 4 insertions, 0 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index e273438c..53b6b931 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -455,6 +455,10 @@ if [ -n "${UNIONFS}" ] ; then
fi
# run ldconfig if not switched off via kernel command line
ldcfg
+ # runlevel directories should contain no links
+ for i in ${D_RCDIRS} ${D_INITBOOTD} ; do
+ rm -f /mnt/etc/$i/* 2>/dev/null
+ done
elif [ -z "$COWLOOP" ] ; then
echo "Using bind mounts to ramdisk for rw access"
mount -n -t tmpfs -o size=${TMPFSSIZE} ramfs ${RWDIR}