diff options
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-x | initrd/initrd-stuff/init | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index 488d6816..ef67c9b4 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -334,7 +334,7 @@ if [ -n "${UNIONFS}" ] ; then mkdir -p /mnt/uniontmp mount -n --move ${RWDIR}/uniontmp /mnt/uniontmp # run ldconfig if not switched off via kernel command line - [ -z "${NOLDSC}" ] && echo $init_ldcfg && ldconfig /etc/ld.so.cache & + [ -z "${NOLDSC}" ] && echo "$init_ldcfg" && ldconfig /etc/ld.so.cache & elif [ -z "$COWLOOP" ] ; then echo "Using bind mounts to ramdisk for rw access" mount -n -t tmpfs -o size=${TMPFSSIZE} ramfs ${RWDIR} @@ -343,7 +343,7 @@ elif [ -z "$COWLOOP" ] ; then mount -n --bind ${RWDIR}/${path} /mnt/${path} done # see above ... - [ -z "${NOLDSC}" ] && echo $init_ldcfg && ldconfig /tmp/ld.so.cache & + [ -z "${NOLDSC}" ] && echo "$init_ldcfg" && ldconfig /tmp/ld.so.cache & for path in ${D_RODIRSINRW}; do if [ -d /mnt/${path} ] ; then LIST=${path}" "$LIST @@ -382,7 +382,8 @@ d_mkrlscript init boot.ld "Running configuration postponed from InitRD" echo "fs complete" >/tmp/fscmpl # write debug file information after filesystem setup completed -echo -e "# /etc${D_SYSCONFDIR}/logfile - file created by $0\n#\n# logfile \ +echo -e "# /etc${D_SYSCONFDIR}/logfile - file created by $0 (initramfs \ +from $date)\n#\n# logfile \ for linux diskless client specific debugging output\nLOGFILE=\"$LOGFILE\"\n#\ \n# debug level\nDEBUGLEVEL=\"$DEBUGLEVEL\"" \ > /mnt/etc/${D_SYSCONFDIR}/logfile || error "$init_errlog" @@ -399,12 +400,15 @@ for i in /var/run/utmp /var/log/wtmp /var/log/lastlog /etc/mtab ; do done chmod a+rwxt /mnt/tmp /mnt/tmp/scratch 2>/dev/null & chown 65534:0 /mnt/var/lib/nobody & -echo -e "# /etc/fstab - file generated by\n#\t$0:\n#\tDirk von \ +echo -e "# /etc/fstab - file generated by $0 (initramfs from $date)\n#\ +\tDirk von \ Suchodoletz, dirk@goe.net\n\nrootfs\t\t/\t\trootfs\t\tro\t\t 0 0\n\ proc\t\t/proc\t\tproc\t\tdefaults\t 0 0\ninitramdevs\t/dev\t\ttmpfs\ \t\trw\t\t 0 0\ndevpts\t\t/dev/pts\tdevpts\t\tmode=0620,gid=5\t 0 0\n\ usbfs\t\t/proc/bus/usb\tusbfs\t\tnoauto\t\t 0 0" >>/mnt/etc/fstab || \ error "$init_fstab" +echo -e "rootfs / rootfs rw 0 0" > /mnt/etc/mtab + # copy library cache if generated if [ -z "${NOLDSC}" ] ; then if waitfor /tmp/ldcfg 50000 ; then |