FreeBSD 10 installer and ZFS root
dteske at FreeBSD.org
dteske at FreeBSD.org
Wed Mar 12 15:18:01 UTC 2014
> -----Original Message-----
> From: Trond Endrestøl [mailto:Trond.Endrestol at fagskolen.gjovik.no]
> Sent: Tuesday, March 11, 2014 12:28 AM
> To: David Christensen
> Cc: freebsd-questions at freebsd.org
> Subject: Re: FreeBSD 10 installer and ZFS root
>
> On Mon, 10 Mar 2014 11:20-0700, David Christensen wrote:
>
> > On 03/10/2014 12:18 AM, Matthew Seaman wrote:
> > > On 10/03/2014 05:47, David Christensen wrote:
> > > > Question -- can I set encryption options for ada0s1d.eli
> > > > during installation?
> > > Not sure. Unless you know exactly what you're doing with crypto
> > > stuff, I'd advise taking the defaults the installer gives you, or
> > > you could accidentally end up with something less secure than you
> intended.
> >
> > It sounds like I'm making feature requests for the FreeBSD installer.
>
> +1.
>
> Re the above: It would be nice if the installer could be told to pause
between
> creating the pools and creating the filesystem layout, and between
creating the
> filesystem layout and extracting the system. Make that two separate
toggles to
> maximize flexibility. That way we could switch to another vty and set the
> zpool/zfs properties ourselves before proceeding.
>
I guess that's an approach. I'm still left wondering why you wouldn't just
create
the file /etc/installerconfig and set the ZFSBOOT_DATASETS variable.
Setting this variable in /etc/installerconfig on the installation media will
override
the default value of:
116 ZFSBOOT_DATASETS="
117 # DATASET OPTIONS (comma or space separated; or both)
118
119 # Boot Environment [BE] root and default boot dataset
120 /$ZFSBOOT_BEROOT_NAME mountpoint=none
121 /$ZFSBOOT_BEROOT_NAME/$ZFSBOOT_BOOTFS_NAME mountpoint=/
122
123 # Compress /tmp, allow exec but not setuid
124 /tmp mountpoint=/tmp,compression=lz4,exec=on,setuid=off
125
126 # Don't mount /usr so that 'base' files go to the BEROOT
127 /usr mountpoint=/usr,canmount=off
128
129 # Home directories separated so they are common to all BEs
130 /usr/home # NB: /home is a symlink to /usr/home
131
132 # Ports tree
133 /usr/ports compression=lz4,setuid=off
134
135 # Source tree (compressed)
136 /usr/src compression=lz4,exec=off,setuid=off
137
138 # Create /var and friends
139 /var mountpoint=/var
140 /var/crash compression=lz4,exec=off,setuid=off
141 /var/log compression=lz4,exec=off,setuid=off
142 /var/mail compression=lz4,atime=on
143 /var/tmp compression=lz4,exec=on,setuid=off
144 " # END-QUOTE
The variable is a multi-line string that describes the datasets and their
properties.
NOTE WELL: When overriding the variable with different contents,
the variables ZFSBOOT_BEROOT_NAME and ZFSBOOT_BOOTFS_NAME
have not yet been defined, so those should be translated to their literal
string values, shown below...
ZFSBOOT_BEROOT_NAME=ROOT
ZFSBOOT_BOOTFS_NAME=default
--
Devin
_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
More information about the freebsd-questions
mailing list