on a set, instead of hardcoding the number of parts in sysinst (which gets
out of sync easily). The fdlast field of the distinfo struct has been
removed.
This solution is a bit simplistic but... anybody using the floppy
installation method will have to split sets himself (as we don't provide
them), so he will know which is the last one. Also, he will be able to
use whatever chunk size he wants.
Closes PR install/5050. Ok'ed by fvdl.
- md_set_no_x() was turning off the "misc" and "text" sets and
not turning off the "xcomp" and "xmisc" sets.
- now that a kernel is installed as "/netbsd" by default, do not
try to symlink (!) from /netbsd-GENERIC (which does not exist)
to /netbsd.
also:
- instead of printing the 3 kernel sets all as "Kernel : ",
now use "Kernel : ", "Kernel(SCSI3): " and "Kernel(SUN4U): "
- add a note to md.c and the menus.md.* files to keep these lists
in sync (so that the first problem above does not occur again.)
missing:
- a way to force that one and only one of the 3 kernel sets are
selected. at least the default install works now.
Handle the "use existing" option for partitions (but keep d as the
boot partition).
While I'm there use get_real_geom() instead of custom code to get the
existing disklabel.
and prompt the user for a new archive.
(No idea if this solves the infamous "sysinst random coredump" problem,
but it's worth a shot, and makes sense in any case)
There's two variables added to Makefile.crunch:
SMALLPROG If 1, add SMALLPROG=1 to CRUNCHENV. [default: 1]
This can be used by various Makefiles to
determine if a `small' version of the program
is required.
SMALLPROG_INET6 If 1 and SMALLPROG == 1, add SMALLPROG_INET6=1
to CRUNCHENV. [default: 0]
This can be used by various Makefiles to
determine if the `small' version has INET6
support enabled.
Only enable SMALLPROG_INET6 for programs on the ramdisks that have INET6 in
the appropriate kernel, and cleanup INET6 setting.
(Note: this means that sysinst won't get INET6 support if the kernel
it's running on doesn't have it).
This change saves a fair bit of space on various install images
(including i386 ramdisk-{ps2,small,tiny}) that didn't have INET6 in
the kernel but were unconditionally getting INET6 support in their tools.
the new disk. This requires my previous changes to sgivol to get a non-
interactive mode. While here, change the way sysinst invoked sgivol (it
called system(), now it uses run_prog()) so we don't mess up the logging
and scripting contexts.
partition handling has been completely rewritten to address serious data
loss issues with Mac HFS partitions, and the a.out -> ELF upgrade has
been addressed. From Bob Nestor; part 1 of 2 of a fix for PR 15528.
For now, we keep the GENERIC/GENERIC_INDY sets, but make the labels a
bit clearer as to their purposes.
XXX: Still need code to install bootloader into volhdr; need either to
integrate into MI installboot or fix up sgivol (I have changes from Scott
for sgivol, just haven't folded them in yet).
This was tested using a custom INSTALL kernel. The current one is >4Mb
which the cats firmware can't currently boot. We need to decide what
needs to be removed from INSTALL.
on the ramdisk image then ask which set of bootblocks to install (normal or
serial). If it doesn't exist, just install the normal ones. (small/tiny
images).
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
instruction.
Create md_hello message and move that message to it.
Port-maintainers: please reflect the reality of your port.
Someone who can write french: please correct *.fr catalogue.
you really should not be changing the geometry values, unless they
look totally ridiculous due to some BIOS bug.
Disable manual entering of initial partition label values when doing
a custom label. The step was redundant. Just go to the label edit
directly, leaving everything but the c and d partitions empty.
seperate booleans. Add flags to run as a plain 'system()' command,
fullscreen (but on a pty), and chrooted, and implement their
functionality. Add a bit of TIOCPKT handling code to handle
programs messing with term settings better.
* Ask to set the root password at the end of an install.
* Remove a few unneeded comments.
* Sprinkle some touchwin() calls here and there to make the output cleaner.
They shouldn't really be needed, but even normal usage (no syslog
messages) even left the screen messy sometimes.
* Change some messages around that were apparently swapped by accident and
thus caused confusion.
by checking uname, or the BOOTMODEL environment var), and set
the kernel setname accordingly for some bootmodels (tiny and laptop),
to install GENERIC_TINY and GENERIC_LAPTOP respectively. There's
no sense in installing plain GENERIC, especially on "tiny" systems;
it may not even make it far enough to add swapspace on 4M machines.
* Make sure to always install bootcode into the MBR (unless the user
explicitly tells us not to). Should fix PR#8887, PR#9093, PR#9999
enabling and disabling swap. Enabling swap is currently only
done by the i386 port on systems with <= 8M of physical memory.
If a user re-enters the install procedure through the main menu,
and the target disk has an active swap partition, try to disable it,
warning the user that this might lead to 'out of swap' problems,
making a restart necessary. This should not happen very often.
Partly based on comments by Simon Burge.
'rc_configured' is still changed via sed's s///, wscons=yes is appended
via "echo >>".
* make target-routines (target_expand(), and whatnot) work if no root
disk was selected. With this, sysinst can now be used on a "normal"
system to adjust the system's timezone. Use the entry in the "Utilities"
menu for that.
Both changes were tested by a full i386 installation.
overwrite anything important. (The moving down hides some elements
of the selection box, but we can scroll).
Took some digging to find out that aparently all selection boxes default
to a upper row of 12 and some more digging on how to change it.
orts. Since port specific information is in appropriate arch/.../md.h
bsddisklabel.c is currently #included by arch/.../md.c.
I'm not totally happy about this, but my concience is somewhat salved by the
overall reduction in breakage.
Initially only pmax, sparc, vax and x68k are using bsddisklabel.c.
While I'm here adjust defs.h for more than eight partitions in a generic
fashion.
partitions under any circumstances, allow no swap, do not *overwrite* /usr
when listing additional partitions, and try to abstract at least most of the
magic numbers to #defines at the top.
Also sync up as much as possible to make this easier in future.
Still need to attack the other arch's md.c files.
Fixed PR#7741
If the default swap is smaller than the remaining disk, truncate to the
available space.
Set rc_configured to YES in md_cleanup_install()