From 5379d524e1f063271db79fd922061801a2d3778b Mon Sep 17 00:00:00 2001 From: Felix Endres Date: Thu, 24 Aug 2006 02:27:10 +0000 Subject: Fixed the fontproblem for gdm + ubuntu + bindmounts git-svn-id: http://svn.openslx.org/svn/openslx/trunk@328 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'initrd/initrd-stuff/init') 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 -- cgit v1.2.3-55-g7522