tags 219528 + patch
thanks

On Wed, Nov 26, 2003 at 09:34:14AM +0100, Jeremie Koenig wrote:
> I'll produce a better fix, such as grepping /proc/filesystems.

Here it is.

-- 
Jeremie Koenig <[EMAIL PROTECTED]>
diff -ru rootskel.before/src/sbin/init rootskel/src/sbin/init
--- rootskel.before/src/sbin/init       Sun Nov 23 20:29:24 2003
+++ rootskel/src/sbin/init      Thu Nov 27 15:04:39 2003
@@ -1,7 +1,15 @@
 #!/bin/sh
 # Set up filesystem as root and pivot into it.
 echo "Setting up filesystem, please wait ..."
-mount -t shm shm mnt
+
+mount -t proc proc proc
+if grep -q tmpfs /proc/filesystems; then
+       mount -t tmpfs -o size=100M tmpfs mnt
+else
+       mount -t shm shm mnt
+fi
+umount proc
+
 cp -a `ls -1 | grep -v mnt | grep -v proc | grep -v dev | grep -v lost+found` mnt
 cd mnt
 mkdir proc dev
diff -ru rootskel.before/src/sbin/init.bootfloppy rootskel/src/sbin/init.bootfloppy
--- rootskel.before/src/sbin/init.bootfloppy    Sun Nov 23 20:29:25 2003
+++ rootskel/src/sbin/init.bootfloppy   Thu Nov 27 15:05:54 2003
@@ -135,7 +135,14 @@
                fi
        done
 
-       mount -t shm shm mnt
+       mount -t proc proc proc
+       if grep -q tmpfs /proc/filesystems; then
+               mount -t tmpfs -o size=100M tmpfs mnt
+       else
+               mount -t shm shm mnt
+       fi
+       umount proc
+
        echo -n "Loading.."
        # pipe_progress adds dots to the above line while there is
        # activity. But we must be sure to catch errors from the zcat.

Reply via email to