summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
authorFelix Endres2006-08-24 04:27:10 +0200
committerFelix Endres2006-08-24 04:27:10 +0200
commit5379d524e1f063271db79fd922061801a2d3778b (patch)
tree2a35b2eaaecd541bb10c717e80a743a7f6345881 /initrd/initrd-stuff/init
parent* tested and improved writing of configuration files (diff)
downloadcore-5379d524e1f063271db79fd922061801a2d3778b.tar.gz
core-5379d524e1f063271db79fd922061801a2d3778b.tar.xz
core-5379d524e1f063271db79fd922061801a2d3778b.zip
Fixed the fontproblem for gdm + ubuntu + bindmounts
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@328 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init8
1 files changed, 7 insertions, 1 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index f36913ff..1e57e5f2 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -380,9 +380,12 @@ elif [ -z "$COWLOOP" ] ; then
for path in ${D_BINDMPTS} ; do
mkdir -p ${RWDIR}/${path} >/dev/null 2>&1
mount -n --bind ${RWDIR}/${path} /mnt/${path}
+ [ ${DEBUGLEVEL} -gt 1 ] && echo "Created ${RWDIR}/${path} and mounted it to /mnt/$path"
done
# see above ...
ldcfg
+ # Save the RO Directories mentioned in the distro-specific
+ # config to a temporary directory. They will lateron be restored
for path in ${D_RODIRSINRW}; do
if [ -d /mnt/${path} ] ; then
LIST=${path}" "$LIST
@@ -398,7 +401,6 @@ elif [ -z "$COWLOOP" ] ; then
done
testmkd ${RWDIR}/var/tmp
chmod a+rwxt ${RWDIR}/var/tmp >/dev/null 2>&1
-
echo -e "${D_ETCEXCL} @@@COMETCEXCL@@@" >>/tmp/etc.exclude
# if ld.so.cache is to be generated then do not copy the file
[ -z "${NOLDSC}" ] && echo -e "ld.so.cache*" >>/tmp/etc.exclude
@@ -434,6 +436,10 @@ servconfig &
for path in @@@COMDIRINDXS@@@ ${D_DIRINDXS} ${D_DIRINBINDMNT} ; do
testmkd /mnt/${path}
done
+# Needed writable subdirs nested in readonly subdirs of writable one
+for path in ${D_RWDIRSINRO}; do
+ mount -n -t tmpfs none /mnt/${path}
+done
for i in /var/run/utmp /var/log/wtmp /var/log/lastlog /etc/mtab ; do
echo -n > /mnt/$i
done