NetBSD/distrib/utils/sysinst
jonathan b3da2a1b88 Fix target prefixing to handle both root-in-swap (traditional miniroot)
and current-root-is-target-root (pmax diskimage.

 * Add code to check disk names (e.g., "sd0") against the current
   kern.root_device  sysctl (whic  does *not* include a partition).

 * Add new function must_mount_root():
   check to see if it's the same device as the root.  If not,
   the current and target root partitions cannot overlap.
   If they do, do statfs() on "/", and return 1 iff we get back
   "root_device" as the mounted-on filesystem, otherwise zero.

* Call must_mount_root() right after the user specifies a disk as
  install/upgrade target, and  if it returns 1, print a message asking
  them to mount root, and abort.

*  Use statfs("/")  mounted_from string to check if a disk partition
    (e.g., "sd0a") matches the current root.
1997-11-09 12:47:06 +00:00
..
arch * Add local definition of DISKLABEL_CMD to arch/i386/md.h. 1997-11-09 04:14:10 +00:00
Makefile use CPPFLAGS instead of CFLAGS, fix dependancies, add RCSID 1997-10-22 02:17:11 +00:00
Makefile.inc use CPPFLAGS instead of CFLAGS, fix dependancies, add RCSID 1997-10-22 02:17:11 +00:00
TODO Fix target prefixing to handle both root-in-swap (traditional miniroot) 1997-11-09 12:47:06 +00:00
defs.h Fix target prefixing to handle both root-in-swap (traditional miniroot) 1997-11-09 12:47:06 +00:00
disks.c * Add local definition of DISKLABEL_CMD to arch/i386/md.h. 1997-11-09 04:14:10 +00:00
factor.c * Clean up target.c to use a single consistent path-prefixing subroutine. 1997-11-03 02:38:41 +00:00
fdisk.c Tweeks to make install nicer. 1997-10-17 21:10:39 +00:00
geom.c Update to current state. Install and upgrade nearly finished. Disk 1997-10-15 04:35:17 +00:00
install.c Fix target prefixing to handle both root-in-swap (traditional miniroot) 1997-11-09 12:47:06 +00:00
main.c - extract_dist now uses dist_list to know which to extract 1997-11-04 01:39:03 +00:00
mbr.c Tweeks to make install nicer. 1997-10-17 21:10:39 +00:00
menus.mi.eng Add an option to install or upgrade from a local disk filesystem. Upgrade 1997-11-05 22:45:53 +00:00
msg.mi.eng Fix target prefixing to handle both root-in-swap (traditional miniroot) 1997-11-09 12:47:06 +00:00
net.c * Add code to run `test(1)' on target-root pathnames. 1997-11-05 07:28:20 +00:00
run.c * Clean up target.c to use a single consistent path-prefixing subroutine. 1997-11-03 02:38:41 +00:00
target.c Fix target prefixing to handle both root-in-swap (traditional miniroot) 1997-11-09 12:47:06 +00:00
txtwalk.c
txtwalk.h
upgrade.c Fix target prefixing to handle both root-in-swap (traditional miniroot) 1997-11-09 12:47:06 +00:00
util.c * Add merge_etc() in upgrade.c. Copies /etc.old/fstab to /etc/fstab 1997-11-06 09:02:36 +00:00