diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2014-11-18 19:00:17 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2014-11-18 19:00:17 +0000 |
commit | f480c03eff41097c1c8701f1e7a7018c5e81b34d (patch) | |
tree | 771f748c0d755fd13cf67743f88419776d033b05 /distrib | |
parent | dc493ddbfee2d908f8024480d85186bb1184a98c (diff) |
Delete tmp directory in /mnt/var during upgrades right before the
extraction of baseXX.tgz creates the symlink to ../tmp.
OK deraadt
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 7d356233bb2..43d2b9d55b0 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.798 2014/11/11 21:31:29 rpe Exp $ +# $OpenBSD: install.sub,v 1.799 2014/11/18 19:00:16 rpe Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback # All rights reserved. @@ -1307,6 +1307,10 @@ install_files() { return fi + # XXX Delete this chunk after 5.8 (not a supported upgrade path) + # XXX Undo old configurations where /var/tmp is a directory + [[ $MODE == upgrade ]] && rm -rf /mnt/var/tmp + for _f in $_get_sets; do _fsrc="$_src/$_f" [[ -f $_tmpsrc/$_f ]] && _fsrc="file://$_tmpsrc/$_f" |