Commit Graph

66 Commits

Author SHA1 Message Date
jpaetzel
d3ab0cf954 Fix a logic bug in pc-sysinstall creating partitions.
Improve exit when an error occurs.
Fix parsing to grab values which contain extra '=' signs.
Fix a bug setting the timezone properly.
Fix a usage bug when setting up with gmirror.
Allow a uzip file from local media to be used.
Allow specifying flags for "newfs" when using UFS as the file system.
Run custom commands after doing final cleanup / fstab generation
and such. Also fix using relative path for config file.

Approved by:	re (bz)
2011-09-19 05:12:53 +00:00
brueffer
0f94bf5e3e Add ftp4.se.freebsd.org to the IPv4 and IPv6 mirror lists.
PR:		157210, 157211
Submitted by:	Niclas Zeising <zeising@lysator.liu.se>
Approved by:	re (kib)
2011-09-10 09:40:00 +00:00
bz
ca3458c071 Start teaching pc-sysinstall about IPv6.
Add some additional empty string checks for IPv4 and try to configure
a netmask along with the address rather than doing things twice.

Contrary to AUTO-DHCP, IPv6-SLAAC will accept static configuration
as well, which we will use at least for resolv.conf currently and
if we were given a static address configure that as an alias as well.

The pc-sysinstaller changes going along were committed to PC-BSD as r10773.

Reviewed by:	kmoore
Sponsored by:	The FreeBSD Foundation
Sponsored by:	iXsystems
MFC after:	20 days
2011-05-31 15:02:30 +00:00
kevlo
bf340de008 Whitespace fixes
Reviewed by:	jpaetzel
2011-05-27 16:17:35 +00:00
jpaetzel
c284bd0acc Wipeout the end of disks, home to things like gmirror metadata, backup GPT tables,
and other potential evil.

Submitted by:	Kris Moore <kris@pcbsd.org>
Approved by:	kib (mentor)
Sponsored by:	iXsystems
2011-05-18 20:38:28 +00:00
jpaetzel
305a27a26c Extracting optional components requires mounting devfs
Submitted by:	Kris Moore <kris@pcbsd.org>
Approved by:	kib (mentor)
Sponsored by:	iXsystems
2011-05-18 20:29:07 +00:00
jpaetzel
5826663523 - Allows using full device name paths, such as /dev/ad0 or /dev/mirror/gm0 in config files
- Fixes some issues creating gmirror devices, including on GPT partitions
- Bugfixes for ZFS mirroring
- Enhanced GELI to work with a passphrase only, or key-file only
- Bugfix to prevent crashing of PC-BSD Live media when checking for upgrade partitions

Submitted by:	Kris Moore <kmoore@freebsd.org>
Approved by:	kib (mentor)
Sponsored by: iXsystems
2011-04-21 06:25:12 +00:00
jpaetzel
3656a76a3a Check in two missing files missed in cleanup.
Change expr to $(())
Switch test from "$?" = "0" to $? -eq 0

Approved by:	kib (mentor)
2011-03-30 17:37:04 +00:00
jpaetzel
b7152a7846 Fix syntax error from previous commit.
Approved by:	kib (mentor)
2011-03-30 17:33:52 +00:00
jpaetzel
c0b9051b17 Fix a syntax error in a little-used function.
Replace expr with $(())
Replace grep > /dev/null with grep -q
Replace "$?" = "0" with $? -eq 0 in tests
Consolidate export statements with variable assignment
Replace tests for ! -z with -n

Approved by:	kib (mentor)
2011-03-27 16:57:54 +00:00
jpaetzel
87a3622218 Increase size of boot partition to give breathing room in the future.
Approved by:	kib (mentor)
2011-03-27 14:20:47 +00:00
jpaetzel
6afaafbd89 Alter comment to reflect change in code.
Try atacontrol if camcontrol fails.

Approved by:	kib (mentor, implicit)
2011-02-23 17:52:26 +00:00
jpaetzel
f4cf481489 Added patch-functions-upgrade which should fix some kernel panics
doing upgrades and uninstalling linux compat ports.

Submitted by:	Joerg-Christian Boehme <joerg@chaosdorf.de>
Approved by:	kib (mentor, implicit)
2011-02-22 19:37:12 +00:00
jpaetzel
ab977d477a Better method for grabbing disk name, dmesg may produce mangled output.
Approved by:	kib (mentor, implicit)
2011-02-22 19:18:56 +00:00
jpaetzel
2e06507130 Remove US as the default layout in backend, let front-ends decide that
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:52:57 +00:00
jpaetzel
6c73158fba Sort available keyboard layouts to a more sane default.
PR:	bin/154687
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:13:07 +00:00
jpaetzel
7d7d9a901c Improve pc-sysinstall's localization options to include support for GDM & KDM
desktop login managers.

PR:	bin/154686
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:06:35 +00:00
jpaetzel
56e8c76633 Add support to pc-sysinstall's create-part feature, to create non MBR type partitions,
such as GPT and others.

PR:	bin/154684
Submitted by:	kmoore
Approved by:	kib (mentor, implicit)
2011-02-18 15:00:25 +00:00
jpaetzel
38ea23ab3e Add "Extract Only" functionality to pc-sysinstall. This allows disk setup to
be done manually, pc-sysinstall is pointed to a mount-point for installation.

PR:	bin/154685
Submitted by:	kmoore
Approved by:	kib (mentor)
2011-02-17 16:33:41 +00:00
jpaetzel
9a29d48c18 Add support for using encrypted password strings when setting
the root / user passwords

PR:	bin/152868
Submitted by:	kmoore
Approved by:	imp
2011-01-10 19:57:18 +00:00
jpaetzel
4f7c775086 Patch pc-sysinstall to deal with 4k sector size drives
PR:	bin/151967
Submitted by:	kmoore
Approved by:	imp
2011-01-10 19:11:25 +00:00
jpaetzel
3e182d5872 Take passwords out of debug log.
Fix path problem that was preventing disk info from being in the log.

PR:	bin/151968
Submitted by:	Kris Moore <kmoore@FreeBSD.org>
Approved by:	imp
2011-01-08 23:03:24 +00:00
jpaetzel
26e5735cfb Push some PC-BSD specific fixes upstream.
PR:	bin/152894
Submitted by:	Kris Moore <kmoore@FreeBSD.org>
Approved by:	imp
2011-01-08 22:42:56 +00:00
jpaetzel
0ed3bd02d8 More elegant way to detect MBR vs. GPT
Submitted by:	nwhitehorn
Approved by:	imp
2011-01-08 20:25:00 +00:00
imp
6071cd7e5f When we switched to the gpart backend, and provided selection between
MBR & GPT, the MBR full-disk init failed to stamp boot1, and results
in a boot not found error. This patch fixes the issue.

PR:		151990
Submitted by:	Kris Moore
2010-11-10 05:32:36 +00:00
imp
745b9bbae7 Turns out we need functions.sh in this file for convert_to_megabytes call. 2010-10-28 06:45:20 +00:00
imp
05dec1f02a More simplifications
Submitted by:	 Alex Kozlov
2010-10-22 00:11:55 +00:00
imp
4cd8e7cda9 Remove unnecessary variable.
Submitted by:	 Alex Kozlov
2010-10-22 00:10:48 +00:00
imp
6aa346fcfa Fix two typos
Submitted by:	Benedict Reuschling
2010-10-21 23:08:42 +00:00
imp
1316729c46 More support for IMAGE installations 2010-10-21 22:46:10 +00:00
imp
c29e8203e9 Minor tweaks in compression support:
o We need an eval here to get the right expansion of the command
o bs=128k doesn't work in some cases, so eliminate it and cope with the
  minor performance hit.

Submitted by:	john hixson
2010-10-21 22:33:50 +00:00
imp
24f2e3e959 Left over from prior patch removed.
Submitted by: John Hixon
PR: 151442 (but the patch was backwards there)
2010-10-21 17:29:18 +00:00
imp
6507e789c6 This patch will only list components if the directory exists. The
directory exist on PC-BSD but not FreeBSD, so an extra check is made.

Submitted by: John Hixson
PR: 151461
2010-10-21 17:23:48 +00:00
imp
53eaae898f This is an updated patch to the last patch to do this which fixes a
local variable issue. This patch decompresses compressed images to the
stdout when writing to a device to avoid running out of space issues.

Submitted by: John Hixson
Pr: 151049
2010-10-21 17:20:37 +00:00
imp
32ef4e45e3 This small patch updates the "geli setkey" flags pc-sysinstall uses
when saving a users passphrase, to make it work in HEAD with recent
geli improvements.

Submitted by: Kris Moore
PR: 151002
2010-10-21 17:14:44 +00:00
emaste
9a17b8dd07 Simplify and significantly speed up the timezone listing backend script.
Reviewed by:	imp
2010-10-19 15:18:40 +00:00
emaste
adec94f194 Minor cleanup, including sysctl -n instead of sed to remove the sysctl
name.

Reviewed by:	imp
2010-10-19 15:12:16 +00:00
imp
3373ecde5c Initial patches to install images...
PR: 150921
2010-10-09 08:52:09 +00:00
imp
69b5e27b62 Fix typo: thanks Kris for pointing this out. 2010-10-09 08:39:14 +00:00
imp
77a8584fd9 Enable softupdate + journals support.
PR: 150862
Submitted by: Kris Moore
2010-10-09 07:45:24 +00:00
uqs
8ae3afcfad mdoc: drop redundant .Pp and .LP calls
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
uqs
f987d108ff mdoc: fix manlint warnings by unbreaking mdoc syntax 2010-10-08 12:39:49 +00:00
imp
3ffc984d1d Add file missed in r212337, my bad... 2010-09-09 03:33:07 +00:00
imp
608e1b84a9 pc-sysinstall(8) patch that allows images to be written to disks
This patch creates the "image" directive for the pc-sysinstall config
file. This allows disks to be configured with an image instead of
partitioning.

PR:		150137
Submitted by:	John Hixson
2010-09-08 20:10:24 +00:00
imp
2060372a39 Indent things consistently
PR:		149926
Submitted by:	John Hixson
2010-08-24 06:11:46 +00:00
imp
73299bcc05 This patch to pc-sysinstall allows the setting of a new config
variable for installation, which lets the user/front-end select
between MBR or GPT partitioning schemes when doing a dedicated disk
installation.

PR:		149772
Submitted by:	Kris Moore
2010-08-19 06:11:06 +00:00
imp
f8dbfee9a2 Added "-m" option to "disk-list" to list memory disks along with
standard disks.

PR:		149749
Submitted by:	John Hixson
2010-08-19 06:07:49 +00:00
imp
3f6646190f Simple patch to add support zpool virtual devices that are not
currently supported.

PR:		149599
Submitted by:	John Hixson
2010-08-19 06:05:05 +00:00
imp
e2d4a5a85f Some cleanup, changed some echo's to echo_log, check for PROGDIR so
that different PROGDIR's can be set.

PR:		148806
Submitted by:	John Hixson
2010-08-19 06:02:31 +00:00
imp
bc2b00ae35 Updates to pc-sysinstall that allow FTP installation of FreeBSD.
PR:		148661
Submitted by:	John Hixson
2010-08-19 06:01:25 +00:00