Commit Graph

1443 Commits

Author SHA1 Message Date
martin fef6bd65fd Enable dynamic sizing of the default swap partition 2010-02-28 22:42:44 +00:00
wiz 95c5212343 Consistently call the file system "ext2". 2010-02-21 13:28:12 +00:00
martin c9c80e594c Since we call /usr and /var with absolute paths, lets do that for /tmp
as well.
2010-02-18 12:21:52 +00:00
martin 7171f90002 We can now boot from FFSv2, so offer it + even use it as a default. 2010-02-17 16:11:00 +00:00
martin c82870bc88 eeh says we should not enable fsck_lfs on lfs partitions 2010-02-17 16:09:52 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
ahoka 291052535a Make it proper KNF as it should have been done in my previous commit. 2010-02-01 00:39:03 +00:00
ahoka 57c158572e Remove duplicate sys/sysctl.h inclusion and put includes in alpabetic
order.
2010-02-01 00:06:18 +00:00
jmmv 296908ed7b Perform in-place replacement of the cypher type instead of renaming the
passwd.conf file to passwd.conf.pre-sysinst file and creating a new one
from scratch:

- This is consistent with all other edits of configuration files performed
  by sysinst.  (E.g. in-place changes of rc.conf.)

- This eases the upgrade of the system to a newer set of files because the
  diffs presented by etcupdate are easier to read.

No objections in tech-install@.  Tested installing NetBSD/amd64.
2010-01-27 11:02:03 +00:00
wiz 7d9fce090d Only a return value below 0 denotes an error in open(2). Found by cppcheck. 2010-01-17 22:48:50 +00:00
wiz af7d8656df Close file when finished with it. Found by cppcheck. 2010-01-17 22:47:18 +00:00
martin faac5a2278 Avoid adding -Os to CFLAGS if DBG is set and contains -g.
This helps gdb a lot when compiling local debug versions of sysinst.
2010-01-13 07:52:38 +00:00
martin 1aca3c1cd8 Use the proper structs for ioctls to fetch network configuration.
Might fix PR 42436.
2010-01-13 07:48:57 +00:00
dsl 23ee525d3d Change most of the variables that hold disk sector number to be (at least)
uint32_t. Might make sysinst work on disks between 1TB and 2TB.
Not actually tested because I don't have a big disk.
Hopefully I haven't broken the small disk case!
Set WARNS= 4 so that comparisons of signed and unsigned block numbers
are trapped.
2010-01-02 21:16:46 +00:00
dsl 7dd4a9773c Fix another couple of signed v unsigned comparisons of disk block numbers. 2010-01-02 20:54:46 +00:00
dsl 8f503a6d66 Fix some of the sign-compare fubar. 2010-01-02 18:06:57 +00:00
dsl 6b52b2b9be Sanitise whitespace to minimise the differences between these files. 2010-01-02 17:15:07 +00:00
nonaka 5a5f67b6bf "Full installation" should install kernel. 2009-12-22 11:14:33 +00:00
ahoka efa829b8a6 Make SHA1 the first option when selecting cyphers, so one without basic
understanding of cryptography won't choose DES as the default on his system.

The default option should be the best possible in case the user is unsure.
2009-12-16 16:03:26 +00:00
pooka d6224f4507 Remove support for NetBSD/playstation2. 2009-12-05 16:29:10 +00:00
he 9fc5e76860 Use ${.CURDIR} when referring to a relative source directory. 2009-11-28 22:13:34 +00:00
tsutsui 64dbdb6579 Don't try installboot(8) if offset of PART_A is not zero.
As man page says, installboot(8) is required only OpenFirmware 1 and 2
machines and even on such machines the root partition has to be at the
beginning of the disk to make installboot(8) work.

On OpenFirmware version 3 machines, the strategy provided by
installboot(8) doesn't work, and they need to have an extra
native partition (HFS or FAT16) which can be recognized by
the newer firmware to put a loadable bootloader.
If PART_A has some offset, we can assume the disk is partitioned
for a machine with OF3, which does't require installboot(8).

Eventually, we should provide an independent partitioning method
for OpenFirmware 3 machines (fdisk MBR partition + FAT16 partition
for ofwboot.xcf as OpenBSD does), but it may require some new API
to get OF version in sysinst.
2009-11-23 13:25:02 +00:00
stacktic f0f9215e04 Fixed a few french messages - patch from Marylène Ysmal. 2009-10-24 14:41:57 +00:00
stacktic 179b5354fd Fixed a few french messages - patch from Marylène Ysmal. 2009-10-24 12:47:30 +00:00
snj febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
snj 550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
stacktic 352ae111a3 Corrected messages. 2009-10-18 19:31:53 +00:00
ahoka ff77aac2d4 Give the option to use tmpfs for /tmp in sysinst instead of the older
mfs on i386 and amd64. Should be enabled on other platforms with reliable
tmpfs too.
2009-10-18 12:09:48 +00:00
joerg 29e22ac027 Allow setting an empty base directory. FTP server like tnftpd do not
allow ftp://foo//bar and similar URLs.
2009-10-16 19:01:03 +00:00
snj f01642e2c0 - Don't extract xetc to /, but rather in /.sysinst (like etc) so that we
don't blow away existing config files.
- Wait until all sets have been unpacked to run postinstall.  Previously
  we ran it after extracting etc, which meant that /var/db/obsolete/ was
  not fully populated.
2009-10-09 21:11:31 +00:00
snj 6a8c1d0dab /usr/X11R7/lib/X11/xkb/symbols/pc went from a directory to a file, so on
upgrades we need to remove it before extracting the xbase set, otherwise
we end up in a puddle of suck.
2009-10-08 06:41:43 +00:00
martin b7d9979e0d When creating /etc/fstab:
for the first swap partition use type sw,dp instead of sw, so dump device
gets configured correctly if swap is not on the second partition.
Fixes PR install/42148.
2009-10-03 12:00:00 +00:00
jmcneill c197f0ba14 In get_descr(), initialize dd_descr to an empty string before probing
ATA and SCSI identification. Fixes issues with xbd and raid.
2009-10-01 10:41:03 +00:00
abs fb1870e986 correct a comment about disktab 2009-09-20 22:43:00 +00:00
abs eff3a12f1c defs.h:
- Re-order the md_*() definitions so they are in the order called
- Add some comments
- Remove obsolete md_set_no_x() definition
- Remove md_copy_filesystem()
- #if defined(DEBUG) declare backtowin(void) to avoid scattering
  externs in various md .c files

mbr.[ch]:
- Add a set_bios_geom_with_mbr_guess() which can be called by all
  the non x86 ports rather than copying the same code into arc,
  bebox, cobalt, evbmips, evbppc, hpcarm, hpcmips, landisk, ofppc,
  prep, sandpoint, and zaurus md.c

install.c:
- Remove now unnecessary call to md_copy_filesystem()

upgrade.c:
- Move move_aout_libs() here, and put under #ifdef AOUT2ELF
- Rather than having *every* md_update call wrefresh(curscr),
  wmove(stdscr, 0, 0), wclear(stdscr), and wrefresh(stdscr),
  move them here

arch/acorn26/md.c:
- Just include arch/acorn32/md.c, but add a note there warning
  about this, and while here add a note to i386/md.c that it
  is included by amd64

arch/*/md.c:
- By all means "Vive la difference", but we have 38 pairs of md.[ch],
  and they could not even agree on the order in which to list the
  md hooks, let alone formatting. Sort the md hooks to match the
  (now sane) order in def.sh, and try to normalise the formatting
- Also copy across some function level comments everywhere
- Ensure functions only used inside each md.c are defined as static
- Remove some now unused functions
- Some files had enable_rc_conf in #ifdef DEBUG. Add this to all
- bebox, evbppc and sandpoint were still playing broken games with
  copying the booted ramdisk to the target disk, the primary result
  of which was just to slow things down and ensure the target system
  lost the .profile extracted from the sets. Just kill this.
- For some ports md_update() called endwin(), and in others not.
  Take a cure from i386/amd64 and a few other more active ports,
  and update everything to match (no endwin())
- In a couple of cases correct port names in comments
- ANSIfy some lingering old style functions
- Consistently use "return 0;" rather than "return (0);"

More of the mbr code should be abstracted, along with the
get_ramsize() / set_swap() logic, but this is (more than)
enough for one day...

sysinst built for all ports but only runtime tested on amd64 & i386
2009-09-19 14:57:27 +00:00
abs 961dc58afe Add cobalt hp700 hpcarm landisk & ofppc to ALL_MACHINES list 2009-09-19 13:33:17 +00:00
jnemeth d539a2c691 Install the new modules.tgz set. 2009-09-07 02:31:53 +00:00
martin 92a844a416 Translate english rev 1.59 (mention USB boot device in addition to floppy) 2009-08-24 09:46:24 +00:00
jmcneill 3f1e5d911a Get rid of the 'select extraction verbosity' menu. 2009-08-23 21:16:16 +00:00
jmcneill 004c1bcc7f Print ${MACHINE} in the welcome message. 2009-08-23 20:58:05 +00:00
jmcneill b6cec36cdd Mention USB media as well as floppy disks. 2009-08-23 20:57:40 +00:00
jmcneill ae6bbc2b13 PR# install/41925: sysinst find_disks() should display more than just
the device name

Try ATA/SCSI identify commands and when successful, use the model information
along with the disk size when creating the 'Available disks' menu.

Instead of having a list of disks (wd0, wd1, sd0) the menu now looks like:

  Available disks

 >a: wd0 (977M, SanDisk SDCFB-1024)
  b: wd1 (233G, FUJITSU MHY2250BH)
  c: sd0 (246M, LEXAR JUMPDRIVE ELITE)

ok martin@
2009-08-23 18:43:33 +00:00
tsutsui cadbb82928 Remove existing gzipped bootloader before installing new one
for upgrade install.
2009-08-23 13:36:54 +00:00
pgoyette f6f3b4be8a Repair more fallout from the exec_aout.h change.
No guarantee that these are the "right" things to do, but they do allow
building of port-amd64 again.
2009-08-16 17:12:47 +00:00
snj 8af0e5d28c It's "let's" 2009-08-11 19:15:30 +00:00
sborrill 5b465c4fb9 Fix build by explicitly narrowing dlsize to an unsigned 32-bit quantity as
supported by disklabel.
2009-05-26 20:29:04 +00:00
nonaka e72bdd20c7 >Support drives over 1TB in size (i.e. stop errors like drive is -654343MB in size).
>Error if drive is over 2TB in size (and thus over the disklabel limit).
2009-05-16 10:40:16 +00:00
sborrill 943355d5b7 Support drives over 1TB in size (i.e. stop errors like drive is -654343MB in
size).
Error if drive is over 2TB in size (and thus over the disklabel limit).
2009-05-14 16:23:38 +00:00
tsutsui c77a6f3174 Allow UFS2 (ffsv2) for root parition. 2009-05-03 11:33:05 +00:00
tsutsui ba5d4af029 Add UFS2 root and boot support. 2009-04-22 17:21:47 +00:00