Commit Graph

42 Commits

Author SHA1 Message Date
Pedro F. Giffuni
f0cfa1b168 share and pc-sysinstall: adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Commit these apart because compile testing doesn't guarantee I didn't made
some nasty mistake. No functional change intended.
2017-11-27 15:28:26 +00:00
Alexander Motin
cdba914b3f Use geom disk list instead camcontrol identify.
The new way works for almost any disk, while the old only for ATA.

MFC after:	2 weeks
2016-03-11 13:06:11 +00:00
Simon J. Gerraty
ccfb965433 Add META_MODE support.
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.

Still need to add real targets under targets/ to build packages.

Differential Revision:       D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
Simon J. Gerraty
5b381db8cc Remove NO_OBJ
For meta mode we will want objdirs.

Differential Revision:	D2748
Reviewed by:	brooks imp
2015-06-11 04:22:17 +00:00
Simon J. Gerraty
44d314f704 dirdeps.mk now sets DEP_RELDIR 2015-06-08 23:35:17 +00:00
Simon J. Gerraty
c8191bc69e We do want objdir 2013-10-13 00:27:34 +00:00
Simon J. Gerraty
89e0f621b2 New/updated dependencies 2013-04-14 01:22:39 +00:00
Simon J. Gerraty
69e6d7b75e sync from head 2013-04-12 20:48:55 +00:00
Alexander Motin
b296309582 Remove some more references to legacy ATA.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2013-04-04 12:03:30 +00:00
Marcel Moolenaar
7750ad47a9 Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
Josh Paetzel
a3471c39f7 An intel RAID can have any arbitrary name. 2012-03-19 16:13:14 +00:00
Josh Paetzel
fde89290d1 Redirect camcontrol stderr to /dev/null. 2012-03-18 21:19:21 +00:00
Josh Paetzel
689d811165 Check for intel RAID devices
Submitted by:	kris
Obtained from:	PC-BSD
2012-03-12 21:24:40 +00:00
Ed Maste
f3e566163f Work around broken BIOS memory reporting
Andrzej has a machine with 32GB of RAM, but only 16GB is reported by the
smbios.memory.enabled.  Thus, use the greater of hw.realmem and the smbios
value.

Reported by:	Andrzej Tobola <ato of iem pw edu pl>
2012-03-08 02:00:52 +00:00
Ed Maste
574280af1a Report the amount of memory from smbios data if provided.
This should get the correct memory size even if a 32-bit image is running
on a machine with > 4GB of memory.  This can be useful is using a 32-bit
installer on a machine which will eventually run a 64-bit image.

Reviewed by:	kmoore
2011-11-12 19:02:55 +00:00
Bjoern A. Zeeb
decedfc4f9 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
Josh Paetzel
84d8c09a40 - 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
Josh Paetzel
8a20c5a39f 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
Josh Paetzel
646a7a09f5 Better method for grabbing disk name, dmesg may produce mangled output.
Approved by:	kib (mentor, implicit)
2011-02-22 19:18:56 +00:00
Josh Paetzel
e944e90ec6 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
Josh Paetzel
0c0054dfe6 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
Josh Paetzel
e0b71bf2a4 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
Josh Paetzel
5eea74f248 More elegant way to detect MBR vs. GPT
Submitted by:	nwhitehorn
Approved by:	imp
2011-01-08 20:25:00 +00:00
Warner Losh
1adaedf5cd Turns out we need functions.sh in this file for convert_to_megabytes call. 2010-10-28 06:45:20 +00:00
Warner Losh
56f8b30888 More simplifications
Submitted by:	 Alex Kozlov
2010-10-22 00:11:55 +00:00
Warner Losh
f1bed22437 Remove unnecessary variable.
Submitted by:	 Alex Kozlov
2010-10-22 00:10:48 +00:00
Warner Losh
b459a68591 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
Ed Maste
bb5c5f84fa Simplify and significantly speed up the timezone listing backend script.
Reviewed by:	imp
2010-10-19 15:18:40 +00:00
Ed Maste
161a621b47 Minor cleanup, including sysctl -n instead of sed to remove the sysctl
name.

Reviewed by:	imp
2010-10-19 15:12:16 +00:00
Warner Losh
ecc12db0a4 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
Warner Losh
b3b8bde704 Indent things consistently
PR:		149926
Submitted by:	John Hixson
2010-08-24 06:11:46 +00:00
Warner Losh
924a3731d3 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
Warner Losh
742736b923 Updates to pc-sysinstall that allow FTP installation of FreeBSD.
PR:		148661
Submitted by:	John Hixson
2010-08-19 06:01:25 +00:00
Warner Losh
a5a3ab24a4 Various updates to support new pc-sysinstall directive
"installPackages" that will install packages and all package
dependencies.

PR:		148606
Submitted by:	John Hixon
2010-08-19 05:59:27 +00:00
Warner Losh
9ae036550c Add support for packages.
PR:		148584
Submitted by:	John Hixon
2010-07-13 23:47:12 +00:00
Warner Losh
7ec5a4bd22 Further simplification. 2010-07-07 00:03:06 +00:00
Warner Losh
e330ab14ff These files should have been added/deleted in r209751 2010-07-06 23:31:52 +00:00
Warner Losh
202d71e3bf A few patches from Ed Maste by way of Kris Moore
1. Change detect-vmware to detect-emulation
2. improve laptop detection
3. better, network descriptions
2010-07-06 23:29:55 +00:00
Warner Losh
73d3a33a3f Update pc-sysinstall to output list of FTP mirrors as well as some
installation information.  Export architecture to install.

PR:		148184
Submitted by:	John Hixson
2010-06-27 17:04:03 +00:00
Warner Losh
adf5b4bcd6 Spell iXsystems, Inc properly
Submitted by:	delphij@
2010-06-27 16:46:11 +00:00
Warner Losh
cab5ea2e17 We need to install the shell scripts as executables rather than as
data files in the backend* trees.

Submitted by:	John Hixon
2010-06-25 22:35:19 +00:00
Warner Losh
4bbc5bd8e0 Bring in Kris Moore's pc-sysinstall shell script from PC-BSD. This
shell script is the back end logic necessary for an installer.  It
contains both query routines to allow a front-end installer to present
reasonable choices to the user and also action routines which allow
the front end installer to put a FreeBSD distribution onto a disk.  It
supports installing onto the usual suspects, as well as advanced
features like Mirroring, ZFS, Encryprion and GPT labels.

While this is only the back-end of the installer, it can do unattended
scripted installations.  In PC-BSD's world view, all installations are
scripted and all the front-end does is write the script.  As such, it
is useful in its own right.

This has been extensively tested over the past several releases of
PC-BSD.  However, differences between that environment and FreeBSD
suggest there will be a period of shake-out while those differences
are discovered and corrected.

A text-based front-end is in the works.  For the GUI-based front-end,
you can use the PC-BSD distribution.

Kris' BSDcan paper on pc-sysinstall is linked off his talk on the
BSDcan site:
	http://www.bsdcan.org/2010/schedule/events/173.en.html

The man page is written by Josh Paetzel, and I wrote the Makefiles for
the FreeBSD integration.  Kris wrote the rest.

This represents version r7010 in the PC-BSD repo.
http://svn.pcbsd.org/pcbsd/current/pc-sysinstall

Submitted by:	kris@
Sponsored by:	iX Systems
2010-06-24 22:21:47 +00:00