diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-07-18 00:36:45 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-07-18 00:36:45 +0000 |
commit | d55fac72a21d8ae164b562032f9e4259f00f016d (patch) | |
tree | 5a888695fef355bdb82cef90cad80d4bd259e965 /distrib/miniroot/upgrade.sh | |
parent | 192ef022e06e39d0f2034dfcffabcca3742b4d78 (diff) |
Rework upgrade's fstab handling so
1) All filesystem with a corresponding /sbin/mount_<type> available
will be mounted. i.e. don't restrict automounting to ffs filesystems
when the user can later mount the others manually.
2) All non-ffs filesystems will be mounted ro, just as currently is
the case for user-mounted filesystems.
3) fsck all to-be-mounted filesystems that have a corresponding
/sbin/fsck_<type> program present.
Some verbiage adjustment and related code cleanup as well.
ok deraadt@.
Diffstat (limited to 'distrib/miniroot/upgrade.sh')
-rw-r--r-- | distrib/miniroot/upgrade.sh | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/distrib/miniroot/upgrade.sh b/distrib/miniroot/upgrade.sh index f555ea34372..231ac331944 100644 --- a/distrib/miniroot/upgrade.sh +++ b/distrib/miniroot/upgrade.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: upgrade.sh,v 1.38 2002/07/13 13:18:05 krw Exp $ +# $OpenBSD: upgrade.sh,v 1.39 2002/07/18 00:36:44 krw Exp $ # $NetBSD: upgrade.sh,v 1.2.4.5 1996/08/27 18:15:08 gwr Exp $ # # Copyright (c) 1997-2002 Todd Miller, Theo de Raadt, Ken Westerback @@ -132,19 +132,21 @@ __EOT ;; esac -echo "The fstab is configured as follows:\n" -cat /tmp/fstab - cat << __EOT +The fstab is configured as follows: + +$(</tmp/fstab) + +You may wish to edit the fstab before the filesystems are mounted. e.g. to +change the order in which the filesystems are mounted. -You may wish to edit the fstab. For example, you may need to resolve -dependencies in the order which the filesystems are mounted. +NOTE: 1) the edited fstab will be used only during the upgrade. It will not + be copied back into the root filesystem. -NOTE: 1) this fstab is used only during the upgrade. It will not be - copied into the root filesystem. + 2) Filesystems with a 'noauto' option or for which no /sbin/mount_XXX + can be found will not be mounted. - 2) all non-ffs filesystems, and filesystems with the 'noauto' - option, will be ignored during the upgrade. + 3) Non-ffs filesystems will be mounted read-only. __EOT ask "Edit the fstab with ${EDITOR}?" n |