Commit Graph

314 Commits

Author SHA1 Message Date
martin fffc348d77 PR install/53857: make the pkgsrc menu wider, so the first column fits
in various translations. While there shorten some (misleading) text.
2019-01-10 19:00:17 +00:00
scole 160c07be3d Add GENERIC.MP and GENERIC_601 kernels to sysinst menu 2019-01-07 18:08:28 +00:00
martin 749e26cd22 PR install/53819: fix polish translation of menu exit string 2018-12-30 16:52:26 +00:00
martin 28b7eee0ce PR install/53820: fix column headers in polish translation 2018-12-30 16:48:58 +00:00
uwe 5b09983a47 Fix line continuations in previous. 2018-12-17 01:16:49 +00:00
martin abef26c33c Editor mishap in previous, pointed out by leot 2018-12-16 11:40:09 +00:00
martin 009ce0057d Separate binary sets and binary pkg prefix from the machine, and set
it explicitly for evbarm*, evbmips* and evbsh3 so we get the correct
64bit pkgs on aarch64 and also have working defaults on the other
variants.
2018-12-16 11:36:08 +00:00
martin 6275343145 Avoid undefined behaviour, pointed out by maxv 2018-12-13 12:28:25 +00:00
kre fbb3329fd3 Divide GIG by 512 (DEV_BLKSIZE) so we don't overflow 32 bit u_long
when multiplying by 128 (in 32 bits, 128 * GIG == 0)

Should fix i386 build )and other 32 bit ports).

An alternative would be to use ULL rather than UL for the numbers,
but that would mean needlessly doing 64 bit arith for data that is
resticted to 32 bit results anyway.
2018-11-28 00:44:08 +00:00
martin 72cf5c53dc Cosmetics: consistently use MEG and GIG defines for size calculations 2018-11-27 17:13:41 +00:00
martin 39e506156f Convert all static menu struct initializiations to C99 name initializer
format - prerequisite for an upcoming evil hack (tm).
No functional change intended.
2018-11-20 19:02:07 +00:00
martin b978e7a9c1 Split positional argument string expansion from msg display, we can make
good use of it elsewhere too.
2018-11-19 17:17:43 +00:00
martin 379f075dc1 Yet another size estimate 2018-11-18 10:37:04 +00:00
martin de7834a35d More size estimate fixes 2018-11-18 10:34:45 +00:00
martin b70953c52d Add default for debug sets size 2018-11-17 19:22:48 +00:00
martin a67ab68028 Now that size estimates are not way off anymore, only double the size
for the minimal suggested partition.
2018-11-16 19:55:18 +00:00
martin 7a2eea57bf Sync install size estimates with current reality 2018-11-16 19:54:03 +00:00
martin 352a555edc Make use of the new positional parameters to better describe the first
partitioning step. Remove size limits/hints encoded in the translations
and replace them by values from the code.
2018-11-15 10:34:21 +00:00
martin ac730b5183 Add a new helper function to show messages with positional parameters 2018-11-15 10:23:32 +00:00
martin c4cf3d8d86 Slightly enhance previous: create two utility functions checking for
partitionability and boot code requirements, use a generic match helper
function for both and fully check the device name.
2018-11-14 02:30:00 +00:00
bouyer a5c25858d1 Skip mbr for xbd and raid devices, as it was before Nov. 5 commits.
anita xen installs should work again.
2018-11-13 17:22:04 +00:00
martin 57cf8237b6 Skip floopies when selecting an install target, but do not add them to
the CD list when selecting an installation source device.
2018-11-11 10:06:09 +00:00
martin 8b5066c45d Do not allow installation onto floppy disk - can be overriden by
architectures where it would make sense (none currently), and also
works around a bug in QEMU for sparc that kills our -current anita tests.
2018-11-11 09:17:10 +00:00
martin 5864e121ba Fix test for active root partition when booting from a wedge 2018-11-09 15:20:36 +00:00
martin 1c2e5b02c0 Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).
2018-11-08 20:29:37 +00:00
martin a48ed55e5c Untangle disk enumeration a bit more. 2018-11-08 11:56:56 +00:00
martin 4bb5c5376d Simplify CD device name matching by using fnmatch(3), suggested
by Christoph Badura.
2018-11-08 11:15:58 +00:00
martin e80b64debe Fix CD_NAMES against concrete instances comparision - if CD_NAMES
entries have a wildcard, strip device instance number off from both
comparands.
2018-11-07 21:59:30 +00:00
martin 3b44a3d7f6 Unify handling of CDROM device names.
Skip CDs when looking for install targets (we do not support installing
onto a blueray with UDF).

Fix search for the default CDROM device and the CD we booted from
for ports with nonstandard CDROM device names.
2018-11-07 21:20:23 +00:00
martin 7a39103985 Get rid of hard coded disk names and use sysctl hw.disknames
instead.
2018-11-05 19:45:56 +00:00
martin b57ba1ec69 For "unknown" sets (should only happen for pkgsrc.tgz), always use
.tgz suffix.
2018-11-05 17:04:03 +00:00
martin eb0dcb1bc7 Remove "usage" translations - they never could be displayed as we only select
the language later.
Extend usage display a bit and sync with reality.
2018-11-03 18:30:00 +00:00
martin 13376b1dc9 Make the debug version compilable with modern gcc.
Do debugging for system(3) calls only when DEBUG_SYSTEM is defined.
2018-11-02 18:07:33 +00:00
martin 0ef20e9266 Support sets in .tar.xz format 2018-10-06 18:45:37 +00:00
rin c484ae3b93 Enable NOPARTMAN for install media. 2018-09-20 12:28:33 +00:00
rin d1110cca13 Add NOPARTMAN compile-time option, which drops extended partitioning
support provided by partman.c. It reduces, e.g., about 30KB for
crunched binary in atari install floppy.

OK christos
2018-09-20 12:27:42 +00:00
tsutsui 53233017b7 Make sure to install a bootloader even on upgrade installation.
Fixes another part of port-sgimips/53583.
Should be pulled up (with rev 1.5) to netbsd-7 and netbsd-8.
2018-09-17 15:19:29 +00:00
martin ad83f34c87 Now that the build cluster creates stable "latest" links, use them
as default for downloading sets.
2018-09-16 09:15:12 +00:00
martin c42e76eb3d When not using the serial console while installing with sysinst,
switch all ports in /etc/ttys over to wsvt25.

For mixed setups that sometims do serial console and otherwise
frambuffer console, it would be better to leave console and constty as
vt100, but switch console to off and ttyE0 to on, but we do not want
to bother the user with tricky questions here and everyone switching
console types should have no problem changing this setup later,
or even deal with a serial console and TERM=wsvt25.
2018-09-15 18:04:21 +00:00
martin ea884bbd6a Fix merge mishap in rev 1.9/1.10 - remove accidently duplicated
code. No functional change.
2018-09-15 17:42:38 +00:00
martin 56c59c7a28 Try to properly guess a path on the ftp server for pkg binaries
and use that as default.

Assume for $N.99 (current) we can use $N.0. Otherwise strip all
RC*/STABLE* annotations and just use the plain numbers.
2018-09-12 13:44:05 +00:00
martin 9ce05eeee9 Split the host name used for ftp transfers from the one used for http
transfers. This is slightly inconsistent, as directories are still
shared - but this allows us to default to cdn/nycdn for http (which don't
support ftp).
2018-09-11 08:05:18 +00:00
martin df9944f85a Fix editor accident in previous 2018-09-08 20:01:19 +00:00
martin a6c219b7c4 PR port-sgimips/53583: fetch kernel name always before using it.
Make the struct utsname local to avoid future similar issues.
2018-09-08 18:10:35 +00:00
martin 3575766bab Fix previous in case when BUILDID is passed - the subdirectory has the
same name as the BUILDID (which already includes the trailing "Z", no need
to append it again)
2018-09-06 07:56:40 +00:00
martin 7141f3ff1f For local builds, at least use the right prefix on nyftp 2018-09-05 12:49:55 +00:00
martin b99992c095 Try to guess the proper directory on ftp or nyftp where the binary
sets for the current build will end up.
2018-09-05 12:01:52 +00:00
christos fe2acef404 Revert previous, fix iteration loops to be consistent:
All sets that have an id >= SET_LAST have NULL name, so use that like the
loop just below.
2018-06-24 19:53:35 +00:00
kamil ed22e03d7d Enlarge the set_status[] array by a single element
In the get_and_unpack_sets() function there is accessed the
set_status[SET_GROUP_END] element in the array. The array is allocated on
the stack with SET_GROUP_END elements. This means that it is 1 element too
short.

This has been reported with MKSANITIZER=yes with Address Sanitizer.
2018-06-23 22:35:29 +00:00
kamil c623d35930 Fix invalid free(3) in sysinst(8)
The path variable is assigned with an allocation on the heap with
strdup(3). Later this pointer is changed with strsep(3) and this caused
invalid free(3).

Store the original pointer in a new helper variable opath and pass it to
free(3). With this change, the problem is going away.

Detected with MKSANITIZER=yes with AddressSanitizer.
2018-06-21 23:05:28 +00:00
christos 9e3f92993e add missing brace. 2018-06-03 18:59:45 +00:00
martin 197cc46010 Default console device and speed to that used by syinst 2018-06-03 14:38:28 +00:00
martin fe12f91a5e Reorder fetch options: http before ftp 2018-06-03 13:23:58 +00:00
martin c52e6b59cd In the generated /etc/fstab, do not use the (temporary, during sysinst)
path name for the file in the comment, but instead the one it will
have on the target system.
2018-06-03 13:18:06 +00:00
martin 2575b4dcc3 Add an option to install onto a pre-configured wedge.
Greatly simmplifies (U)EFI setups (but does not fully automate them yet).
2018-06-03 13:16:30 +00:00
joerg b77ea2f710 deconst -> __UNCONST, the former involves UB with NULL arithmetic. 2018-05-18 12:23:22 +00:00
kre 925396b4ac Change return type of pm_lvm_find() from int to void.
It always returns (returned) 0 which was ignored by the one call.
2018-05-01 21:28:39 +00:00
kre c45b0e7cfe PR install/53220
Don't call pm_lvm_find() unless have_lvm

pm_lvm_find() assumes that data structs (lvms) has been allocated
for it to use, which doesn't happen if !have_lvm

This avoids a sysinst core dump when the lvm command is not installed
(such as when installing from the embedded RAM root filesys in an
INSTALL kernel.)
2018-05-01 21:26:41 +00:00
martin 371d88511b Simplify and get rid of external "grep" dependency which is not available
on all install meadia.
Sugested by kre.
2018-05-01 09:01:45 +00:00
martin 88cbfee136 vnconfig has been renamed to vndconfig. Pointed out by kre. 2018-05-01 08:27:39 +00:00
ryo fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
jmcneill 27aaea9d2f Official builds now append a timestamp to the kernel config name, so we
can no longer rely on matching an exact name like "(INSTALL32_IP3x)".

Strip the trailing ) from the version strings checked so sysinst will
install the correct bootloader and kernel again.
2018-03-17 22:27:04 +00:00
mrg aa20739e7d fixes for GCC 6.4:
mail's execute() needs a volatile for setjmp().

telnet has a missing {} issue.

isdnd's print_config() has a missing/wrong {} issue, and
its p_q931bc() has inconsistent indentation (but not any
actual problem.)

map-mbone's accept_neighbors2() compares a vs. a instead
of a vs. b.

sysinst's pm_cgd_check() has missing {} issue.

timed's main() has missing {} issue.
2018-02-04 09:01:12 +00:00
martin a9abe48acc Cosmetics: fix the order of calloc() arguments. 2018-01-29 16:24:23 +00:00
maya c66c60f8a9 Fix copy paste error. from coverity. 2018-01-28 14:34:26 +00:00
skrll ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
skrll ba7c07c65b Fix RPI kernel file after FDTisation.
From Harold Gutch
2017-12-14 14:12:39 +00:00
gson 0eb663cba7 Clear the screen after running installboot. If we don't, there will
be a leftover line saying "Status: Finished" at the top of the next
screen, along with some random punctuation in the left and right
margins.  Inspired by ../landisk/md.c 1.3.
2017-09-11 15:24:28 +00:00
maya 7db80fab74 evbmips can "boot root FFSv2"
It typically uses a non-NetBSD bootloader (PMON, u-boot...) and those
don't differentiate from v1 from v2 - both are unsupported and it requires
a separate boot partition.
2017-08-09 23:01:06 +00:00
gson c7fa9ad5c0 Clear the screen after running installboot. If we don't, there will
be a leftover line saying "Status: Finished" at the top of subsequent
screens, and the message "Hit enter to continue" will be redrawn after
the set selection is complete, which confuses literal-minded robotic
users such as anita.
2017-07-18 17:15:45 +00:00
sevan f7a3540ecf Drop main() prototype. 2017-05-04 16:26:09 +00:00
christos 2c6ed7a648 another buffer overflow. 2017-01-13 05:49:27 +00:00
christos 4dd10bdd36 - allocate space dynamically instead of putting structs in BSS.
- change some wrong strncat to strlcat.
2017-01-12 17:38:08 +00:00
roy 87cdadbd3f ping is not a reliable means of testing if connectivity to download sets
actually works, so remove it.
Hopefully fixes PR kern/51531.
2016-12-13 19:03:49 +00:00
alnsn 66e93929b7 Add aes-xts to sysinst(8). 2016-12-11 00:56:34 +00:00
roy bdebc53a9a Fix PR kern/51531 by using ifconfig to wait for addresses to become
valid rather than sleeping a fixed ammount of time.
2016-11-22 12:04:35 +00:00
flxd 9ff8fe6273 Add new USB-enabled kernel config(s) based upon GENERIC for pmax, include it as kernel set in the build and make it a choice in sysinst.
OK simonb@
2016-11-04 19:18:50 +00:00
christos da3d868a6d elide stack protector warning 2016-06-08 02:00:40 +00:00
dholland f8610727d2 Disable the code that tries to prepare a new partition table (but doesn't
do anything with it...) because it's zooming off the end of the array it's
trying to use.

It looks to me as if NEW_MAP_SIZE has been accidentally used as both
the number of blocks occupied by the new partition table and also the
number of entries in it. Or something. This needs platform knowledge
to sort out. XXX.

Workaround for PR 50757.
2016-05-31 02:49:50 +00:00
dholland d9a33fbe91 Explicitly ignore errors in the hack for mucking with wedges; mark it XXX
for future attention. Other part of PR 50886 from David Binderman.
2016-05-30 17:03:21 +00:00
dholland ccc5db6204 #if out some unreachable code that's apparently not yet supported.
PR 50886 from David Binderman.
2016-05-30 17:00:38 +00:00
martin 1ef77d7e7c David Binderman in PR bin/50714: fix memory leak 2016-01-26 14:08:58 +00:00
martin 4d3ac9f239 David Binderman in PR bin/50713: fix memory leaks 2016-01-26 14:05:29 +00:00
pgoyette 7935b6fc9b Enable installation of amd64 on an lfsv2 partition.
XXX Other ports will need similar changes to arch/.../md.h after testing!

XXX The mount_lfs warning about lfs being experimental may confuse or
XXX corrupt the sysinst display window.
2015-11-14 23:00:17 +00:00
martin e082252485 PR 50342: if there is no current partition manage, assume we are running
from an already installed system.
2015-10-18 09:21:55 +00:00
joerg 10100b028a Simplify. 2015-08-28 12:04:08 +00:00
tsutsui 37c170c28e Remove unused es message files. 2015-08-12 18:22:22 +00:00
tsutsui 7ec466b181 Drop ancient AOUT2ELF option. Saves ~280 bytes. 2015-08-12 18:20:02 +00:00
isaki bbeaff6281 indent and some KNF. 2015-07-25 07:12:30 +00:00
matt 36b15a92c0 Stub out enough so this builds for evbarm64 2015-07-08 01:12:48 +00:00
youri 28411567b5 Wording. 2015-06-19 12:27:02 +00:00
ozaki-r 8f82f57c45 Remove obsolete interfaces: eon (netiso) and nsip (netns)
Pointed out by Kamil Rytarowski
2015-05-21 01:09:00 +00:00
martin e483043e46 Do not -DCATALOG_DIR for DEBUG builds to allow easy (local) testin of
translations.
2015-05-17 10:22:20 +00:00
martin 9ee09e5ff9 Invert sense of a vnd creation message ("Create new image: Yes") and kill
the translations that I can't update myself.
2015-05-17 10:13:24 +00:00
martin 840d8b9a07 Missed a few more "yesno" in previous 2015-05-11 21:07:56 +00:00
martin 5270515f54 Make "ask_yesno" and "ask_noyes" take a const char * as argument, moving
the deconst() dance into the utility functions and simplifying all callers.
2015-05-11 13:07:57 +00:00
martin f92de306f4 More (ab-)usages of "yesno" 2015-05-11 13:01:08 +00:00
martin cc33bc91e6 Remove a few more (ab-)usages of "yesno". 2015-05-11 12:57:55 +00:00
martin a83f4e2ce4 Make it compile on architectures that do not support INET6 in sysinst 2015-05-11 06:58:13 +00:00
martin e21052b4e5 Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.
2015-05-10 10:14:02 +00:00
martin b3b23df81a Sort DBG vs CPPFLAGS in the DEBUG case, as requested by Christos 2015-05-10 09:13:15 +00:00
martin b2609efb8f When exiting from the "ftpsource" menu, explicitly set yesno to -1 (again),
to avoid a retry loop because a submenu action has changed this global.
Fixes PR 49440.
2015-05-09 12:55:06 +00:00
martin f33ca424b5 Add a new utility function "update_wedges()", which triggers a scan
for wedges on the given disk. Call this after writing a disklabel.
This makes all auto-discovered wedges go away after we changed the
partitioning (and are not using GPT) and fixes PR 49665.
2015-05-09 12:06:31 +00:00
martin 746360b112 Make gcc generate better debug info when building with DEBUG set. 2015-05-09 06:15:42 +00:00
martin aeb2cdc99a As pointed out by John D. Baker: replace all / characters in packnames
(which might be automatically generated from controller names like
"PERC 5/i") with a space before using the string as a file name.
2015-05-01 17:48:36 +00:00
gson 6b28ba7844 Shorten the message "System configuration files (/etc)" to just
"Configuration files (/etc)" so that it doesn't overflow into the
"Selected" column, overwriting the "Yes" or "No" so that there is
no way to know if the set is selected or not.
2015-05-01 13:48:05 +00:00
snj d36b8cce23 make the english sysinst messages suck a bit less:
- improve wording
- correct outdated info
- pick some consistency nits
- fix whitespace
2015-04-30 06:37:26 +00:00
maxv 149659eb68 Fix the French translation. 2015-04-20 14:10:31 +00:00
maxv 3d61adb879 Several fixes for the French translation. Looks like the '{\n' break the
interface: the "No" buttons sometimes disappear.

Actually I can't test this change right now; will see tomorrow.
2015-04-19 16:14:03 +00:00
mbalmer 03639a91cd IPv4 number -> IPv4 address 2015-04-03 14:57:41 +00:00
joerg f449d0c454 Boot partition as FAT32 doesn't really make sense, so don't force
the MBR to lie and allow FAT16 too.
2015-03-12 11:32:16 +00:00
snj 362cd6ee40 Handle empty input gracefully by simply jumping back to the config menu. 2015-01-20 21:51:05 +00:00
abs 40a37f0d92 Rather than scatter set_swap() calls wrapped in ram size checks through
md_post_disklabel() and md_pre_update(), abstract them out to an MI
set_swap_if_low_ram() and call from the appropriate MI places.
Now all platforms add swap if the system has <= 32M of RAM.
2015-01-02 19:43:13 +00:00
martin 3cbe7ed1ad Revise previous: with RUN_SILENT there is never a good reason to create
the output window unless there is actually output to display.
2014-12-30 10:10:22 +00:00
martin 099d1616af If we launch a program with RUN_SILENT, give it more than two seconds to
run before we create an output window. On a swapping VAX it can take
seriously longer, and we get interactive status display even if the program
did not produce any error output otherwise.
2014-12-29 14:43:06 +00:00
martin 44d35daebe We can not rely on the existence of the "gpt" binary on install media -
make installation work without it (and without strange errors) again.
2014-12-28 12:05:27 +00:00
martin 42a1d150e6 Move bogusly merged files over to new location. 2014-12-28 11:51:10 +00:00
tsutsui 4b574ec157 Terminate messages with a newline so that dialog box won't overwrite messages.
Should be pulled up to netbsd-7 (and netbsd-6) branches.
2014-11-24 15:22:59 +00:00
snj 5b90a227cf "Encryption" has an r in it. 2014-11-10 01:05:10 +00:00
martin ad279af689 On architectures that have no BIOS (and so do not set a BIOS geometry)
we need to initialize the globals bsec, bcyl and bhead before using
them.
2014-10-21 18:19:17 +00:00
snj f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
snj eebaae53ca Make the option to abort pkgsrc fetching/extraction actually work.
Previously, if the network was not set up and you couldn't fetch
pkgsrc, you'd get stuck here, unable to make it back to the parent
menu.
2014-10-15 21:38:39 +00:00
christos e47dca206e Don't use asctime(localtime(time_t *)) because this is really ctime(time_t *)
and not checking the result of localtime can lead to tears.
Add a safectime() that always returns a good string, and add some debugging
so that we can see if there is indeed something wrong in the new libc time
code.
2014-10-14 16:35:20 +00:00
gson fbdc6f8ee9 When checking if the user chose to use the existing bootblocks, use
the appropriate variable, boottype.bp_consdev, not the uninitialized
bp.bp_consdev.  Also remove bp and bootxx since their only use was in
the incorrect check.  This should fix the problem of sysinst segfaulting
when you choose "Use existing bootblocks" on amd64.
2014-10-11 13:34:01 +00:00
roy 0c7cf1ae4c Change the IPv6 DNS selection to use DNS selection and add the
Google Public V4 DNS servers to the list.
The other field can take an IPv4 or IPv6 name server of choice.
Fixes PR install/49231.
2014-09-22 19:01:02 +00:00
roy 8e47ac0efa Remove the ping6 ff02::2 test, it looks pretty pointless.
dhcpcd will ensure the IPv6 network is up before forking.
ping the IPv4 default route before the nameserver as the nameserver
could be over the default route anyway.

Fixes the core issue with PR install/49231.
2014-09-22 18:47:41 +00:00
martin ceb7a1b9a3 For the benefit of gcc 4.5, rename a local "nl" variable to "nline",
so it doesn't collide with the global curses nl() function.
2014-09-13 17:22:22 +00:00
roy 1c37fe7141 Fix a bogus gcc warning: dhcp_config may be used uninitialized 2014-09-13 09:46:12 +00:00
roy 9cc5846ff7 Show the IP6 address instead of yes 2014-09-13 09:38:43 +00:00
roy 2787059b04 Strip newline from the gateway correctly. 2014-09-13 09:30:30 +00:00
roy eda033034a Change the display order so it's protocol agnostic at the top,
then IPv4 then IPv6.
2014-09-13 01:11:58 +00:00
roy 13c4979619 Only prompt for one nameserver, let the user decide if it's a
pre-determined google server other another one.
2014-09-13 00:38:36 +00:00
roy 63fc81c2f0 rtsol is no longer used. 2014-09-12 21:12:42 +00:00
roy 61e374731e Don't prompt for hostname or domain if obtained from DHCP. 2014-09-12 21:02:06 +00:00
roy 14d86bcffe dhcpcd will already have configured the system at this point, so
don't bother writing it manually.
2014-09-12 20:48:55 +00:00
roy ec4a0efb33 Use the 20-resolv.conf hook from dhcpcd rather than the minimal one.
Extract configured information from resolv.conf and hostname instead
of scraping the last dhcpcd script run.
This will allow the use of DHCPv6 and IPv6RA DNS details in the future.
2014-09-12 20:42:13 +00:00
roy 4fabb2a304 The dhcpcd utilties in pkgsrc require dhcpcd to be running in master mode.
So set dhcpcd to start like so, but restrict it to the configured interface
still instead of ifconfig_foo=dhcp.
2014-09-12 20:20:25 +00:00
martin 551f6cb995 Make sure to not dereference a NULL pointer. 2014-08-19 13:44:31 +00:00
martin 7a7d59f635 Cosmetic changes trying to appease coverity scan. 2014-08-19 13:41:08 +00:00
martin 722a22e445 Check return values from stat before comparing contents of the result
structures. Pointed out by coverity scan.
2014-08-19 13:36:04 +00:00
martin 3221cb6f7f if chdir() fails, try chdir / 2014-08-19 13:30:32 +00:00
martin ffc1983074 Make an invariant more clear to avoid fals positives from coverity scan 2014-08-19 13:26:27 +00:00
martin fe0740f823 Check return value from getenv() before using the value. Pointed out by
coverity scan.
2014-08-19 13:04:45 +00:00
martin 14d42b6c1e Make sure the interface name is 0 terminated, pointed out by coverity scan. 2014-08-19 13:01:48 +00:00
martin 36f4a5867f Remove (accidently) duplicated code - pointed out by coverity scan. 2014-08-19 06:49:21 +00:00
martin eee31b641f Remove duplicate fclose(), pointed out by coverity scan. 2014-08-19 06:47:15 +00:00
jmcneill 6fcbb74223 remove trailing colon from "addusername" msg 2014-08-15 22:58:11 +00:00
riz db9fae484c Use installboot to install bootblocks for i386/amd64, now that
they are included on all boot media.

Some of the previous method of setting the console (and conspeed, when
using serial console) is retained, but it should probably be reworked.

Also, adapt to the fact that we may be installing to a disk wedge.

With this change, it is now possible (but still ugly) for sysinst to
create a bootable GPT-labeled disk.
2014-08-11 00:31:22 +00:00
tls ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
riz ede85da57f Clean up comments. No functional changes. 2014-08-08 20:59:35 +00:00
riz 6a3b8676d9 Most GPT fields are 64-bit quantities, so use 64-bit types to store.
Don't try to assign negative values to unsigned quantities.
Use strtouq(), not atoi(), to read 64-bit values.

Booting from an installed GPT-labelled disk still doesn't work,
but at least sysinst doesn't crash as soon as a GPT is created.
2014-08-08 20:24:27 +00:00
joerg 0d704fc1a2 Make it a warning, otherwise the missing noreturn will fail the build. 2014-08-06 12:34:42 +00:00
martin 8b3edf2fa9 Do not install message catalogs 2014-08-06 12:16:12 +00:00
martin 169405fcaa Remove a few menu entries if raid/lvm/cgd/gpt are not available. 2014-08-06 10:03:49 +00:00
martin 438e08f560 Make sysinst use the catalog files installed in /usr/share/sysinst (if
available), fall back to . if not, or use build-in english otherwise.
2014-08-06 09:11:46 +00:00
martin 50357e6f8b Install language files 2014-08-05 18:46:04 +00:00
martin e0a0745c3d Avoid comparision between array and NULL 2014-08-05 08:39:39 +00:00
martin 037e685afe Adapt to extended partitioning support 2014-08-04 08:59:28 +00:00
martin c5d76a21ae Rename the "exit" option in the "select your installation" menu into
"Abandon installation" to make clear it is fatal - suggested by
Andreas Gustafsson.
2014-08-04 08:50:13 +00:00
mrg dba5edb2f6 for the !tmpfs case, ensure that pm_with_swap is initialised. 2014-08-04 04:20:01 +00:00
martin 4b2364d962 (Finally) merge a slightly modified version of the 2012 GSoC results
from Eugene Lozovoy: add extended partitioning options to sysinst.
Still needs some testing and polishing, but it now is possible to use GPT
or to create a RAID set from scratch and install onto it.
2014-08-03 16:09:38 +00:00
dholland 4808d892e4 Add a dummy sysinst architecture for ports that don't have their own yet.
This makes the presence of sysinst in /usr/sbin MI (as intended) --
remember that one of the goals is for sysinst to be able to install
chroots, and installing a chroot is a sensible operation on all ports,
even those for which an installer per se might not make sense.

Currently this dummy architecture fails instead of doing anything, but
as they say, one thing at a time.
2014-07-26 19:56:30 +00:00
dholland e52187bbbb Update for building in usr.sbin. 2014-07-26 19:32:22 +00:00
dholland 50dbef1a09 Move sysinst sources to usr.sbin.
This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.
2014-07-26 19:30:39 +00:00