summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-20 00:56:40 +0100
committerDirk von Suchodoletz2009-03-20 00:56:40 +0100
commit8ba90ea5e3a8d8c3615631c2042623499dd37ebc (patch)
tree4b1dad135f15cff59a89230223d3444a3a1fbaf7 /initramfs/stage3-stuff/init
parentMore generic exclusion of most annoying/useless in stateless autostarted (diff)
downloadcore-8ba90ea5e3a8d8c3615631c2042623499dd37ebc.tar.gz
core-8ba90ea5e3a8d8c3615631c2042623499dd37ebc.tar.xz
core-8ba90ea5e3a8d8c3615631c2042623499dd37ebc.zip
Moved the loading of aufs/unionfs modules, hoping to fix the id44
to (/mnt)/tmp mounting ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2743 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-xinitramfs/stage3-stuff/init31
1 files changed, 16 insertions, 15 deletions
diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init
index af2ef2ca..75c02e9b 100755
--- a/initramfs/stage3-stuff/init
+++ b/initramfs/stage3-stuff/init
@@ -663,21 +663,9 @@ runinithook '35-have-network-root'
# get the complete collection of kernel modules available
mount -n --bind /mnt/lib/modules /lib/modules || error "$init_moddir"
-# start hardware configuration as background process if not a special
-# debuglevel (21) is used for the option of manual hwautocfg start
-if [ ${DEBUGLEVEL} = 21 ] ; then
- echo "You can run 'hwautocfg main &' manually now ..."
- /bin/ash
-else
- [ $DEBUGLEVEL -eq 20 ] && echo "** started hwautocfg in background at \
-$(sysup)"
- hwautocfg main &
-fi
-
-runinithook '40-started-hw-config'
-
+# unionfs/aufs modules visible by now if installed, try to use aufs for rw
+# access if available
union_type=""
-# try to use aufs for rw access if available
if [ ${aufs} -eq 1 ] && \
modprobe ${MODPRV} aufs 2>/dev/null && \
lsmod | grep -qe "^aufs" ; then union_type="AUFS"
@@ -691,10 +679,23 @@ else
error "$init_loadaufs" nonfatal
unset aufs unionfs
fi
+
+# start hardware configuration as background process if not a special
+# debuglevel (21) is used for the option of manual hwautocfg start
+if [ ${DEBUGLEVEL} = 21 ] ; then
+ echo "You can run 'hwautocfg main &' manually now ..."
+ /bin/ash
+else
+ [ $DEBUGLEVEL -eq 20 ] && echo "** started hwautocfg in background at \
+$(sysup)"
+ hwautocfg main &
+fi
+
+runinithook '40-started-hw-config'
+
# runtimer
[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \
echo "** Filesystem setup started at $(sysup)"
-
# setup of client root filesystem dependent on the availability of UnionFS
if [ -n "${union_type}" ] ; then
echo "Using ${union_type} for rw access"