summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/partedit
Commit message (Collapse)AuthorAgeFilesLines
* Use LIBEXECDIR for /usr/libexec.bdrewery2015-11-261-1/+1
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add support for two workarounds for known issues booting GPT in legacy mode ↵allanjude2015-07-184-19/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | on some hardware For Lenovo laptops with buggy bios (x220, t420, t520): Write the 0xee entry into the second slot in the pmbr instead of the first For some Dell and HP models: The BIOS gives a warning message when booting in legacy mode from a GPT partitioned disk where the 0xee partition in the pmbr is not flagged active For models known to have this problem, mark the pmbr active during installation Use smbios data to identify machines known to be affected by any of the above, and offer the user the option to apply the workaround In bsdinstall's ufs auto mode (autopart partition wizard): Allow users to select which type of partition table to use Keep current defaults: MBR for BIOS, GPT for UEFI This allows users to choose GPT for legacy boot if they wish PR: 184910 PR: 194359 Reviewed by: Michael Dexter Approved by: marcel MFC after: 3 days X-MFC-With: r285594 Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3091
* Add META_MODE support.sjg2015-06-131-0/+25
|\ | | | | | | | | | | | | | | | | | | | | 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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-3/+5
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-1911-70/+248
| |\
| * \ Merge head from 7/28sjg2014-08-194-18/+28
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge from headsjg2014-05-081-1/+1
| |\ \ \
| * \ \ \ Merge headsjg2014-04-288-19/+97
| |\ \ \ \
| * \ \ \ \ Merge head@256284sjg2013-10-132-2/+4
| |\ \ \ \ \
| * | | | | | Updated dependenciessjg2013-10-131-0/+2
| | | | | | |
| * | | | | | Merge from headsjg2013-09-052-1/+18
| |\ \ \ \ \ \
| * | | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | | |
| * | | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | | |
| * | | | | | | Sync with HEAD.obrien2013-02-087-18/+323
| |\ \ \ \ \ \ \
| | \ \ \ \ \ \ \
| | \ \ \ \ \ \ \
| *-. \ \ \ \ \ \ \ Sync from headsjg2012-11-042-8/+1
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+24
| | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | Use MBR by default on BIOS systems. An increasing number of motherboardsnwhitehorn2015-01-301-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assume that GPT means UEFI boot, resulting in the installation of uninstallable systems. This needs a little more work before MFC, in particular based on disk size (> 2 TB + BIOS + MBR is not workable). That will come soon.
* | | | | | | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | | | Only allow ZFS boot on GPT; the MBR ZFS bootblocks cannot be installed usingnwhitehorn2014-10-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gpart bootcode as /boot/zfsboot needs to be split into multiple pieces by hand and copied to different areas of the partition.
* | | | | | | | | Centralize determination of boot firmware (UEFI vs. BIOS/CSM) into anwhitehorn2014-10-121-32/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function x86_bootmethod() and fix deviations from style(9).
* | | | | | | | | Add ZFS support to the bsdinstall partition editor and sade.nwhitehorn2014-09-1311-43/+216
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Kurt Lidl (original version) MFC after: 6 weeks
* | | | | | | | Allow up to 512K for boot code on GPT with BIOS. As pmbr.s says in a comment,nwhitehorn2014-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "545K should be enough for any boot code". This rounds down slightly. Reported by: Matthew Fuller MFC after: 2 weeks
* | | | | | | | After EFI support was added to the installer, it needed to allow bootnwhitehorn2014-07-041-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR. This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now.
* | | | | | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | | | | | Revert r261296. This removes the WITHOUT_NCURSESW option.brooks2014-05-151-12/+2
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | It was the wrong direction. We will instead remove use of the non-wide-character supporting libncurses.
* | | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | from the latter.
* | | | | | Finish connecting up installer UEFI support. If the kernel was booted usingnwhitehorn2014-04-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EFI, set up the disks for an EFI system. If booted from BIOS/CSM, set up for BIOS.
* | | | | | Add EFI support to the installer. This requires that the kernel providenwhitehorn2014-04-267-17/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a sysctl to determine what firmware is in use. This sysctl does not exist yet, so the following blocks are in front of the wheels: - I've provisionally called this "hw.platform" after the equivalent thing on PPC - The logic to check the sysctl is short-circuited to always choose BIOS. There's a comment in the top of the file about how to turn this off. If IA64 acquired a boot1.efifat-like thing (probably with very few modifications), the same code could be adapted there.
* | | | | | Merge from CheriBSD:brooks2014-01-301-2/+12
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. MFC after: 4 weeks Sponsored by: DARPA, AFRL
* | | | | Add installer support for CHRP/PAPR PowerPC systems that use MBR+BSDnwhitehorn2013-09-232-2/+4
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | formatting, like x86, but with an additional MBR slice containing a raw boot partition. Approved by: re (gjb)
* | | | Fix bindings of keys when in the partition editor. By adding the usual input ↵bapt2013-06-171-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | binding to the "partlist" sub window. This is a workaround, as for unknown yet reason the keys binded on the Partition Edition window are the one from partlist instead of the one from standard "formfield" Reported by: alfred, nwhitehorn
* | | | Add some missing DPADD.antoine2013-05-111-0/+1
| |_|/ |/| |
* | | Improve error handling and remove an unnecessary check on geom providernwhitehorn2013-01-223-17/+17
| | | | | | | | | | | | | | | | | | | | | type. GEOM provider names can't duplicate (or shouldn't -- devfs will either break or only use the first one if they do) so using the first provider by that name is a sufficient check. This also lets the scripted partitioner install onto gmirror and geli and such things.
* | | If no partition configuration is specified in {}, use the automatic setupnwhitehorn2013-01-203-5/+11
| | | | | | | | | | | | | | | | | | | | | the interactive installer uses. Example: bsdinstall scriptedpart ada0 Result: Use entire disk for a FreeBSD system with default partition layout
* | | Add a simple scripted partitioner. Documentation and more scripting supportnwhitehorn2013-01-204-3/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | will come soon. This lets the install process have a line like: bsdinstall scriptedpart 'ada0 GPT {1.5G freebsd-ufs /, 10G freebsd-swap, auto freebsd-ufs /usr}' to set up a system with a 1.5GB /, some swap space, and a /usr using the rest of ada0. MFC after: 1 month
* | | Make "Finish" the default choice in the partition editor. This lets younwhitehorn2013-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | successfully complete an installation with all defaults by pressing Enter repeatedly until your machine reboots. MFC after: 3 weeks
* | | Remove EOL whitespace.joel2013-01-121-1/+1
| | |
* | | Make sade actually be a symlink to partedit, as per the commit message innwhitehorn2013-01-021-1/+2
| | | | | | | | | | | | | | | | | | | | | r244859, rather than a hardlink. This fixes installation if /usr/sbin is on a different filesystem than /usr/libexec. Submitted by: se
* | | Add a man page for the new sade(8), which is mostly the same uninformativenwhitehorn2012-12-302-1/+76
| | | | | | | | | | | | manpage as the old sade(8).
* | | Replace sade the extracted piece of sysinstall with sade the extractednwhitehorn2012-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | piece of bsdinstall (although this time with a symlink instead of duplicated source code). Discussed on: freebsd-geom MFC after: 3 months
* | | If invoked as sade, don't complain about having a filesystem on / alreadynwhitehorn2012-12-301-2/+6
| |/ |/| | | | | | | | | -- it's something you expect (and indeed hope for). MFC after: 1 week
* | Remove variables which are initialized but never used thereafter reported by ↵eadler2012-06-192-8/+1
|/ | | | | | | gcc46 warning Approved by: cperciva MFC After: 3 days
* Fix typo.nwhitehorn2012-04-041-1/+1
| | | | | Submitted by: pawel dot worach at gmail dot com MFC after: 3 days
* Experimental support for booting CHRP-type PowerPC systems from hard disks.nwhitehorn2012-01-251-1/+3
|
* Warn if trying to install over an existing partition, which usually failsnwhitehorn2012-01-181-4/+22
| | | | | | | anyway due to libarchive not being able to overwrite schg flags. PR: bin/164278 MFC after: 4 days
* Plug memory leaks and fix open(2) error check.kevlo2011-11-281-1/+1
| | | | | Reviewed by: nwhitehorn MFC after: 3 days
* Provide an error message instead of silent failure if no disks are presentnwhitehorn2011-10-251-4/+13
| | | | | | | in the system. PR: bin/161950 MFC after: 3 days
OpenPOWER on IntegriCloud