[ previous ] [ next ] [ threads ]
 
 From:  Dinesh Nair <dinesh at alphaque dot com>
 To:  =?ISO-8859-1?Q?J=E9r=E9my_Cluzel?= <j dot cluzel at online dot fr>
 Cc:  m0n0wall at lists dot m0n0 dot ch, m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] WRAP version of m0n0 1.3a1
 Date:  Mon, 13 Feb 2006 16:15:02 +0800
>> Trying to mount root from ufs:/dev/md0
>> mkdir: /var/run: Read-only file system
>> mkdir: /var/log: Read-only file system

freebsd 6.x mounts mfsroot filesystems readonly by default, as opposed to 
mounting them read-write on 4.x, hence a new kernel built without the 
patches i've made for 6.0 wont work.

you can try rebuilding the WRAP kernel with the attached patch applied, and 
it should boot alright.

an alternative (and better) solution would be when i complete the proper 
porting over of the bootup scripts to remount the filesystem read-write 
after booting up.

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque dot com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+
--- sys/kern/vfs_mount.c.orig	Sat Nov 12 23:22:07 2005
+++ sys/kern/vfs_mount.c	Sat Nov 12 23:59:50 2005
@@ -1297,7 +1297,7 @@
 		strcpy(path, ROOTNAME);
 
 	error = kernel_vmount(
-	    MNT_RDONLY | MNT_ROOTFS,
+	    MNT_ROOTFS,
 	    "fstype", vfsname,
 	    "fspath", "/",
 	    "from", path,