diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-07-13 13:18:06 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-07-13 13:18:06 +0000 |
commit | 8ef33bae0f96f0dc240e4f1a003da2d8232658f8 (patch) | |
tree | 43dff20a39ee89c7ba2e45c18317fd1cecc820cf /sys | |
parent | d82db1eba0ccbed6d4fafed20d718cb86847c7c7 (diff) |
More cleanup/simplification/shrinkage.
1) Factor out inquiring for a device. ask_fordev()
now does this for root disk determination, other
disk initialization, install sets disk or cd
inquiry. Also ensures cd devices are created on
the fly like disk devices already were, and
shortens some verbiage.
2) Just ask for root disk if install is skipping
disk initialization, rather than doing the
'df /mnt ...' scan, since 1) we just end up asking
anyway and 2) everything *should* have been
umount'ed when previous install was finished or
interrupted.
3) getrootdisk -> get_rootdisk to conform to
get_<global> naming convention.
4) Add and use new global ROOTDEV rather than
constantly adding 'a' to ROOTDISK. ROOTDEV
default is set in get_rootdisk().
5) Put loop inside get_rootdisk rather than
always putting one around it. If no rootdisk
found/specified just exit install/update.
6) Eliminate getanotherdisk since ask_fordev()
does most of the work.
7) Eliminate parameter to check_fs, just use
ROOTDEV instead.
8) Some typographical and minor code tweaks.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions