diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-05-05 17:54:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-05-05 17:54:58 +0000 |
commit | 3831500bdda701da6b45de87df334aa7f2dc7be0 (patch) | |
tree | 0d2591c60bb10d334ee49b1f9aa5926d8f3988a8 /distrib/loongson | |
parent | 4a5ca217aa016a974733a4d25ab9c91c4c2e145e (diff) |
Use bsd.gz inside ramdisk
Diffstat (limited to 'distrib/loongson')
-rw-r--r-- | distrib/loongson/ramdisk/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/distrib/loongson/ramdisk/Makefile b/distrib/loongson/ramdisk/Makefile index b9be639e5a2..772a0cf0d33 100644 --- a/distrib/loongson/ramdisk/Makefile +++ b/distrib/loongson/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.24 2019/05/03 20:03:58 deraadt Exp $ +# $OpenBSD: Makefile,v 1.25 2019/05/05 17:54:57 deraadt Exp $ FS= miniroot${OSrev}.fs FSSIZE= 18432 @@ -16,7 +16,7 @@ MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096 all: ${FS} ${CDROM} -${FS}: bsd.rd +${FS}: bsd.gz dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE} vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd echo 'u\ne 0\n83\n\n63\n*\nw\nq\n' | fdisk -e `cat vnd` > /dev/null @@ -43,6 +43,12 @@ ${CDROM}: bsd.rd -V "OpenBSD/loongson ${OSREV} boot CD" \ ${.OBJDIR}/cd-dir +bsd.gz: bsd.rd + cp bsd.rd bsd.strip + strip bsd.strip + strip -R .comment -R .SUNW_ctf bsd.strip + gzip -9cn bsd.strip > bsd.gz + bsd.rd: mr.fs bsd cp bsd bsd.rd rdsetroot bsd.rd mr.fs |