Age | Commit message (Collapse) | Author |
|
|
|
a) Add /var/run to the filesystem created when the installation media
boots. This allows the creation and use of the dhclient.pid file.
Synchronize all mtree.conf files in architectures using miniroot.
b) Rework the traps used in upgrade.sh and install.sh so that HUP,
INT, QUIT, TERM and EXIT all invoke a cleanup function that kills an
active dhclient, unmounts all filesystems and fsck's -p all devices
in /etc/fstab, or just /mnt if /etc/fstab is not present.
c) Make sure the actions of the cleanup function are visible, thus
eliminating the long delay with no feedback at the end of the
upgrade/install script, after the congratulatory message.
d) Reduce manual parsing of fstab files by using umount -a to
unmount all mounted filesystems.
e) Since the new cleanup function tries to unmount all filesystems,
use the presence of /etc/fstab, rather than a difference between
`df /` and `df /mnt`, to determine if an install is being restarted
in a state where disk initialization can be skipped.
f) Change munge_fs, check_fs, mount_fs, remount_fs so that they
all 'know' about /etc/fstab rather than passing the same
parameter in all the time.
g) Use input redirection on munge_fs to read correct file, rather
than passing a file name as a parameter.
h) Indent code for various smaller functions.
i) Eliminate some subshell usage to simplify code further.
j) Display pretty messages during fsck -p to clearly indicate success
or failure of fsck, rather than just dumping fsck output.
k) Always run mount_fs in install.sh, even if disk initialization is
being skipped, because the trap should have unmounted all filesystems
when the last run terminated.
ok weingart@ millert@
|
|
out. Save about 287 bytes. Based on diff from deraadt@.
Update Copyright (ok deraadt@).
|
|
comments that, being on the end of code lines, cannot be stripped
automatically.
Just delete unhelpful ones, and move the rest onto separate lines
where they can be stripped.
Also remove a duplicated initialization of ROOTDISK.
In total, reduces script size on floppy by 1117 bytes, making room
for coming improvements.
|
|
promising this would not happen.
Historically this was being done to preserve any ufs -> ffs
changes the upgrade script had done, but the script has not done
such changes for some time.
ok millert@ deraadt@
|
|
install.md at build time. remove some crud. and the icing on the cake:
skip testing all this until next week
|
|
Remove chunk of commented out, unused code.
Add _didnet=1 to enable_network() so that ftp upgrade
does not ask for network information it already has.
Tell a user that selects the http installation method
that the files will be downloaded via http.
Suppress all 'softdep' options in fstab_shadow so
there are no warnings when the filesystems are
mounted.
Suppress all non-ffs (including nfs, ufs) filesystems
from fstab_shadow. Ufs was never used to install
OpenBSD.
Suppress all 'noauto' filesystems from fstab_shadow.
Reword some comments and messages, esp. the one
just before the offer to edit fstab. Punch up the
fact that the fstab will not be saved, mention
that non-ffs and noauto filesystems will be
ignored.
Move
/usr/X11R6/lib/X11/{rstart,twm,xkb,xsm,xinit}
directories to
/usr/X11R6/lib/X11/XF3{rstart,twm,xkb,xsm,xinit}
and replace with links. Links can be overwritten
during upgrade. Directories can't. This enables the
upgrade from XFree86 3.x to XFree86 4.x.
ok deraadt@ millert@
|
|
|
|
/etc/mail/sendmail.cf, move /etc/sendmail.cf -> /etc/mail/sendmail.cf
and edit /etc/rc if needed. That way the sendmail binary will be
able to find its .cf file on reboot.
|
|
are upgrading not installing) then execute it chroot'd to /mnt.
This allows people to customize the install procedure in a simple
yet flexible manner.
|
|
right before unmounting the new system.
Beats having mtree files around every package...
|
|
"doing...done" since it takes no noticable time...
|
|
There are other places where double quotes are used unnecessarily as well
o Kill md_copy_kernel() and check_kernel() since the kernel is now a 'set'
o Add support for shell escapes from any prompt
o Consolidate post-install_sets sanity checks and put them in sane_install().
o install_sets() now calls sane_install() to do the sanity checks and won't
let you continue until things are sane (as far as it can determine).
|
|
|
|
|
|
|
|
|
|
Actually install machine dependant sets if there are any specified
Special-case a set named "kernel" so that it will copy "bsd" to the root
disk
|
|
|
|
|
|
|
|
|