On Thu, Oct 18, 2012 at 2:35 AM, Alexander Yerenkow <yeren...@gmail.com> wrote:
> Hello there.
> I have problem here, and don't know if it's bug or "feature" :)
> If I prerare boot media (hdd, sd card,usb, etc) with FreeBSD, and NOT
> create there fstab, I see such behavior:
>
> 1. I need enter manually where from mount root (e.g. ufs:ada0s1a or
> ufs:ada0s1a rw)
> 2. If I enter ufs:ada0s1a rw - I have / mounted in read-only anyway. <== Is
> this bug?...

Looks to be a feature in sys/kern/vfs_mountroot.c:

  997 parse_mountroot_options(struct mntarg *ma, const char *options)
      :
1021                if( strcmp(name, "rw") == 0 ||
1022                    strcmp(name, "noro") == 0) {
1023                        /*
1024                         * The first time we mount the root file system,
1025                         * we need to mount 'ro', so We need to ignore
1026                         * 'rw' and 'noro' mount options.
1027                         */
1028                        continue;
1029               }

Scot
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to