Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2013 14:47:13 -0500
From:      Allan Jude <freebsd@allanjude.com>
To:        freebsd-current@freebsd.org
Subject:   Re: [CFT] bsdinstall and zfsboot enhancements
Message-ID:  <528285C1.3030309@allanjude.com>
In-Reply-To: <015FE59A-C792-48D0-B806-24D9E83050AA@fisglobal.com>
References:  <C9783B1F-20EA-4C08-9947-70DF363E8B6A@fisglobal.com> <528218C2.1010106@gmail.com> <015FE59A-C792-48D0-B806-24D9E83050AA@fisglobal.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--vqhfavdVoF9LiRao8HrDQehUNRWUsB8eu
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 2013-11-12 14:11, Teske, Devin wrote:
> On Nov 12, 2013, at 4:02 AM, Johan Hendriks wrote:
>
>> Teske, Devin schreef:
>>> Hi all,
>>>
>>> Another Call For Testing...
>>> This one is for bsdinstall.
>>>
>>> Two patchsets are required for this CFT:
>>>
>>> http://druidbsd.cvs.sf.net/viewvc/druidbsd/bsdinstall_debug/
>>> http://druidbsd.cvs.sf.net/viewvc/druidbsd/bsdinstall_zfs/
>>>
>>> The enhancements are:
>>>
>>> + Add a `-D FILE" command-line option for overriding the
>>> path to the bsdinstall log file (BSDINSTALL_LOG env var).
>>>
>>> + Document new `-D FILE' in the man page for bsdinstall.
>>>
>>> + If FILE in `-D FILE' begins with a +, debug output goes to
>>> stdout (interleaved between dialog(1) invocations/output) as
>>> well as to FILE (minus the leading + of course).
>>>
>>> + If BSDINSTALL_LOG cannot be written, then debugging is
>>> disabled (except in the case of a leading + in the pathname,
>>> wherein debug will still be printed to stdout).
>>>
>>> + Update source code format to approximate a future shstyle(9)
>>>
>>> + Fix a dangling participle ("Begun ..." -> "Began ...")
>>>
>>> + Rewrite the docsinstall script (was necessary to abate direct
>>> dependency on BSDINSTALL_LOG (instead, use fault-tolerant
>>> bsdconfig framework which displays appropriate errors for
>>> package management).
>>>
>>> + Add additional debug output for dhclient/rtsol/wpa_cliscan
>>>
>>> + Display script errors in a textbox rather than just on stdout
>>>
>>> + Update many coments.
>>>
>>> + Add new f_show_err() API call (like f_show_msg but changes
>>> the dialog title to "Error")(see bsdconfig's `common.subr').
>>>
>>> + Add new f_eval_catch() API call for executing a command via
>>> eval but not before logging the command to debug. Several
>>> example cases documented in API header for function in
>>> bsdconfig's `common.subr'.
>>>
>>> + Fix dialog auto-sizing when launched as an rvalue to a pipe
>>> for indirected scripts (previously would default to 80x24 sizing
>>> in this case, now it can autosize to full size even when in a pipe
>>> chain).
>>>
>>> + Fix a bug in f_snprintf wherein if the $format argument began
>>> with a "-" or "--" it would be misinterpreted as a flag to printf. (t=
his
>>> is in bsdcofig's strings.subr)
>>>
>>> + Add accompanying f_sprintf() and f_vsprintf() to go along with
>>> already existing f_snprintf() and f_vsnprintf() (see bsdconfig's
>>> strings.subr).
>>>
>>> + Update bsdinstall's "config" script to adjust ttyu* entries in
>>> /etc/ttys when it is determined that we are in-fact doing an install
>>> over serial (e.g. bhyve).
>>>
>>> + Remove some unnecessary default ZFS datasets from the
>>> automatic "zfsboot" script. Such as: /usr/ports/distfiles
>>> /usr/ports/packages /usr/obj /var/db /var/empty /var/mail and
>>> /var/run (these can all be created as-needed once the system is
>>> installed).
>>>
>>> + Remove setuid=3Doff for /usr/home (as discussed with others from
>>> last round of CFT).
>>>
>>> + Fix some i18n string violations in "zfsboot"
>>>
>>> + Bolster debugging output in "zfsboot"
>>>
>>> + Fix some string quoting issues in "zfsboot"
>>>
>>> + Fix some variable scope issues in "zfsboot"
>>>
>>> + Only display the ZFS vdev type selection menu when running
>>> interactively (duh).
>>>
>>> + Change "Create" to "Install" in "zfsboot" main menu
>>>
>>> + Increase pedantic error checking in "zfsboot" (type-check
>>> arguments and such).
>>>
>>> + Add a call to "graid destroy" to kill automatic metadata (part of
>>> the series of pedantic destructions we do when bootstrapping
>>> a new/naked disk).
>>>
>>> + Make judicious use of new f_eval_catch() in "zfsboot"
>>>
>>> + More comments (zfsboot).
>>>
>>> + Fixup some variable names for consistency (zfsboot).
>>>
>> I did not try this installer myself, but one question, can i seperate =
the swap space from the pool?
>> I have seen to many strange hangs on a server where i use swap on zfs!=

>>
> If I understand correctly, it does this by default.

Yes, the zfsboot script in bsdinstall creates a raw swap partition, it
does not use swap-on-zfs

--=20
Allan Jude



--vqhfavdVoF9LiRao8HrDQehUNRWUsB8eu
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSgoXDAAoJEJrBFpNRJZKf1YcQALsuegL4Y1G8aH91omYu5SqS
q44cPe/HIDE2v+k6fGrvDroQAymcSW875b5obqJQVLccFeN/cInyBVHAj4f3typZ
h+WCRXHf3CfGt2ILaTsOv/AMckTocTTUqtrEkxgAW0q9UfzGOLK9E5fyGAKoZTx7
RofS3lTfVwkCQ/gSFeHtF9GwOqbEE1kf57t5g+qFhxg/EmyCVRan7kCrXZF8fl/z
iJRn/XX2QDMsr4NjwlwlyzS6+juINNM3LNs6YjfGoECJSnne9CAY8nkpTZh/CA6k
pSTMEgSWRmaBAUXsU6OFY1cgfXnDioMGrDr5V/UHmcnzggHHv4ewnDXRjhqPlnV0
TrwjVjSXVDc9BUsvhl9vDOykBecPtAVUSBjneKTidC1ZWF3sWw5ABe8tTBdJEoUm
etVh6pk3sCnFiNFolM2lRnVeP0DzA5RxiXM1zrV4XdtaOdgeqgZsXDvHVKvSUd4J
6/DOTAxmVlWYZtbSON2z0QDnPQ4oD3MXR8sCKjECg/e2IrGh6ZPBDg2IMb4Cbmxf
NqlmsbWFeRzMhPWMA7XNX8CyIf0DaJQ2KTpbAh8wkvPnJ8WyWFaR0MuIDGx0uVjE
0uhr2Efj1u6lR8HohZ+SMVuIHAK595/RUze7lmXuGh9bOuE7TZ/jNByiB9V7i93W
FfoiSbpWtaiQOCLrQAO2
=J97Y
-----END PGP SIGNATURE-----

--vqhfavdVoF9LiRao8HrDQehUNRWUsB8eu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?528285C1.3030309>