Re: A little question about safe mode

From: Scot Hetzel <swhetzel_at_gmail.com>
Date: Sat, 20 Oct 2012 10:37:50 -0500
On Thu, Oct 18, 2012 at 2:35 AM, Alexander Yerenkow <yerenkow_at_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
Received on Sat Oct 20 2012 - 13:37:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:31 UTC