summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syspatch/syspatch.sh
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2016-09-07 15:41:23 +0000
committerajacoutot <ajacoutot@openbsd.org>2016-09-07 15:41:23 +0000
commit04d438a46cb6a58f1161e3fdfc222e85554b954c (patch)
tree48b11421930ac7a98765260f3f467d317c091fa6 /usr.sbin/syspatch/syspatch.sh
parentdump some extra vcpu state if failure to launch is detected (diff)
downloadwireguard-openbsd-04d438a46cb6a58f1161e3fdfc222e85554b954c.tar.xz
wireguard-openbsd-04d438a46cb6a58f1161e3fdfc222e85554b954c.zip
Don't put bsd.mp twice in the GENERIC.MP rollback tarball.
Diffstat (limited to 'usr.sbin/syspatch/syspatch.sh')
-rw-r--r--usr.sbin/syspatch/syspatch.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index f954d5053fe..55411487249 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.9 2016/09/07 15:19:33 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.10 2016/09/07 15:41:23 ajacoutot Exp $
#
# Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -68,13 +68,12 @@ create_rollback()
done
(cd / && \
+ # GENERIC.MP: substitute bsd.mp->bsd and bsd.sp->bsd
if ${_BSDMP} && \
tar -tzf ${_TMP}/${_patch}.tgz bsd >/dev/null 2>&1; then
- # GENERIC.MP: substitute bsd.mp->bsd and bsd.sp->bsd
- # XXX bsd.mp created twice in the tarball
tar -czf ${_PDIR}/${_REL}/rollback-${_patch}.tgz \
- -s '/^bsd$/bsd.mp/' -s '/^bsd.sp$/bsd/' \
- ${_rbfiles} bsd.sp 2>/dev/null # no /bsd.mp
+ -s '/^bsd.mp$//' -s '/^bsd$/bsd.mp/' \
+ -s '/^bsd.sp$/bsd/' bsd.sp ${_rbfiles}
else
tar -czf ${_PDIR}/${_REL}/rollback-${_patch}.tgz \
${_rbfiles}