summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-05-05 18:52:40 +0200
committerDirk von Suchodoletz2007-05-05 18:52:40 +0200
commit551eadaad5a012df62de3c6f6e7985439a759135 (patch)
tree88556396c3dae3ba78868451d8281471fb129dc7 /initramfs/initrd-stuff/init
parent* mkdxsinitrd now determines DISTRO and DISTRO_VER from the given ROOTPATH (diff)
downloadcore-551eadaad5a012df62de3c6f6e7985439a759135.tar.gz
core-551eadaad5a012df62de3c6f6e7985439a759135.tar.xz
core-551eadaad5a012df62de3c6f6e7985439a759135.zip
Started to remove distro-specific udev from stage3 (was already done for
mkdxsinitrd, so no need there :-)), please check for other distros too (see tickets #129, #130) ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1002 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-xinitramfs/initrd-stuff/init14
1 files changed, 7 insertions, 7 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index 463376b4..b90b60b9 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -514,7 +514,8 @@ if [ -n "${unionfs}" -o -n "${aufs}" ] ; then
mkdir -p /mnt/uniontmp
mount -n --move ${rwdir}/uniontmp /mnt/uniontmp
chmod 0755 /mnt/uniontmp /mnt
- # run ldconfig if not switched off via kernel command line
+ # run ldconfig if switched on via kernel command line (token ldsc) or
+ # triggered by unionized root filesystem
ldcfg
# runlevel directories should contain no links
for i in ${D_RCDIRS} ${D_INITBOOTD} ; do
@@ -557,14 +558,13 @@ elif [ -z "${cowloop}" ] ; then
[ -n "${ldsc}" ] && echo -e "ld.so.cache*" >>/tmp/etc.exclude
# for tar exclude lists might be used, more difficult for cp
cd /mnt
- tar -X /tmp/etc.exclude -cp etc/* | \
- tar -xp -C ${rwdir} 2>/dev/null ;
+ tar -X /tmp/etc.exclude -cp etc/*|tar -xp -C ${rwdir} 2>/dev/null
cd /
mount -n --bind ${rwdir}/etc /mnt/etc
mount -n --bind ${rwdir}/var /mnt/var
# get the "covered" mounts back into filesystem structure
- for i in ${list}; do
- mount -n --move /root/$i /mnt/$i #>>$LOGFILE 2>&1
+ for path in ${list}; do
+ mount -n --move /root/$path /mnt/$path #>>$LOGFILE 2>&1
done
#rm -rf /root/* >/dev/null 2>&1
# run some specific stuff !?
@@ -655,7 +655,7 @@ if [ -n "$uniondirs" ]; then
include_in_fsroot_union "$union_type" "$uniondirs"
fi
-# post init for some distro specific (fixme!! more elegant solution)
+# post init for some distro specific
postinit
[ -s /initramfs/postinit.local ] && \
mv /initramfs/postinit.local /bin/postinit.local
@@ -669,7 +669,7 @@ postinit
# unmount the bind mounted modules directory
export ticks
-for ticks in 0 200 300 500 800 1000 1200 2000 5000 ; do
+for ticks in 0 400 1000 2000 5000 10000 ; do
usleep $ticks && umount -n /lib/modules/${KERNEL} 2>/dev/null && break
error "$init_wait" nonfatal
done