]> Zhao Yanbai Git Server - minix.git/commitdiff
Unmount defunct boot ramdisk at bootup
authorThomas Veerman <thomas@minix3.org>
Thu, 21 Jan 2010 09:58:07 +0000 (09:58 +0000)
committerThomas Veerman <thomas@minix3.org>
Thu, 21 Jan 2010 09:58:07 +0000 (09:58 +0000)
etc/rc
servers/rs/table.c

diff --git a/etc/rc b/etc/rc
index edfd19082f24d7a2dc752901cf84bc8d63f7d8d7..08c0b4c4bac0e8ef4824b0e6645425fde0a7cbbe 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -73,6 +73,9 @@ start)
     # /etc/fstab lists the root, tmp and usr devices.
     . /etc/fstab
 
+    # Unmount now defunct ramdisk
+    umount /dev/imgrd > /dev/null || echo "Failed to unmount boot ramdisk"
+
     # Use MFS binary only from kernel image?
     if [ "`sysenv bin_img`" = 1 ]
     then
index 6217ba617ee6e1e0446759262e12503149146c3a..19994afa91c6d17554ba9ddf785a2d01650a90de 100644 (file)
@@ -82,7 +82,7 @@ PUBLIC struct boot_image_sys boot_image_sys_table[] = {
   { RS_PROC_NR,       SRV_SF                            },
   { VM_PROC_NR,       VM_SF                             },
   { LOG_PROC_NR,      SRVC_SF                           },
-  { MFS_PROC_NR,      SRVC_SF                           },
+  { MFS_PROC_NR,      SF_USE_COPY | SF_NEED_COPY        },
   { PFS_PROC_NR,      SRVC_SF                           },
   { DEFAULT_BOOT_NR,  SRV_SF                            } /* default entry */
 };