Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2012 10:37:50 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Alexander Yerenkow <yerenkow@gmail.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: A little question about safe mode
Message-ID:  <CACdU%2Bf9BeLzRSjiv_qhLLcPYvxK159Vm7m-M%2B8KDFZZe5zq-6A@mail.gmail.com>
In-Reply-To: <CAPJF9wm-dvUwgQzZzijakD=FBM9HTBQ%2BF4jC510KX%2BUOG-SfgA@mail.gmail.com>
References:  <CAPJF9wm-dvUwgQzZzijakD=FBM9HTBQ%2BF4jC510KX%2BUOG-SfgA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 18, 2012 at 2:35 AM, Alexander Yerenkow <yerenkow@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf9BeLzRSjiv_qhLLcPYvxK159Vm7m-M%2B8KDFZZe5zq-6A>