From b370a3075af4eb84cc1b594766351a6ee03e4cb6 Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Sun, 14 Feb 2021 17:14:43 +0000 Subject: 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@ --- distrib/amd64/ramdisk_cd/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'distrib/amd64/ramdisk_cd') diff --git a/distrib/amd64/ramdisk_cd/Makefile b/distrib/amd64/ramdisk_cd/Makefile index 591a12b09b7..70ae847b3e6 100644 --- a/distrib/amd64/ramdisk_cd/Makefile +++ b/distrib/amd64/ramdisk_cd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.29 2021/02/14 17:11:02 semarie Exp $ +# $OpenBSD: Makefile,v 1.30 2021/02/14 17:14:42 semarie Exp $ FS= miniroot${OSrev}.img FSSIZE= 9920 @@ -56,7 +56,9 @@ MRDISKTYPE= rdrootb MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096 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 -- cgit v1.2.3