diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-02-14 17:14:43 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-02-14 17:14:43 +0000 |
commit | b370a3075af4eb84cc1b594766351a6ee03e4cb6 (patch) | |
tree | 7cf03884c5a2c5cffddbe8a099c98f8ed5eccbec /distrib/amd64/ramdisk_cd | |
parent | 71b18407c1401e9300aedb1afe1d6f47e76518cf (diff) |
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/amd64/ramdisk_cd')
-rw-r--r-- | distrib/amd64/ramdisk_cd/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
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 |