summaryrefslogtreecommitdiffstats
path: root/distrib/sparc64/miniroot
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2021-02-14 17:14:42 +0000
committersemarie <semarie@openbsd.org>2021-02-14 17:14:42 +0000
commit32d40e934eb68d8b0a54cb5af280d2bed1f6a8b3 (patch)
tree083598e51cb1833cc5adee0f2583b77a876bfb0d /distrib/sparc64/miniroot
parentdistrib: use ${MACHINE} instead of hardcoded value (diff)
downloadwireguard-openbsd-32d40e934eb68d8b0a54cb5af280d2bed1f6a8b3.tar.xz
wireguard-openbsd-32d40e934eb68d8b0a54cb5af280d2bed1f6a8b3.zip
distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd
It passes options to keep rd_root_size and rd_root_image symbols while stripping. These symbols are the ones used by rdsetroot to insert or extract disk image into RAMDISK. ok danj@ deraadt@
Diffstat (limited to 'distrib/sparc64/miniroot')
-rw-r--r--distrib/sparc64/miniroot/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/sparc64/miniroot/Makefile b/distrib/sparc64/miniroot/Makefile
index f38c2a1377c..d66d02dcbed 100644
--- a/distrib/sparc64/miniroot/Makefile
+++ b/distrib/sparc64/miniroot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.26 2021/02/14 17:11:02 semarie Exp $
+# $OpenBSD: Makefile,v 1.27 2021/02/14 17:14:42 semarie Exp $
FS= miniroot${OSrev}.img
FSSIZE= 6400
@@ -59,7 +59,9 @@ ${CDROM}: bsd.rd ${FS}
mksuncd f ${CDROM} ${FS}
bsd.gz: bsd.rd
- objcopy -S -R .comment -R .SUNW_ctf bsd.rd bsd.strip
+ objcopy -S -R .comment -R .SUNW_ctf \
+ -K rd_root_size -K rd_root_image \
+ bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs bsd