Skip to content

Commit

Permalink
release: don't checksum images if there are none
Browse files Browse the repository at this point in the history
For platforms that don't have any of the memstick, cdrom, or dvdrom
release images (i.e. riscv64), the release-install target will trip up
when invoking md5(1) on the non-existent image files. Skipping this
allows the install to complete successfully.
  • Loading branch information
mhorne committed Dec 8, 2020
1 parent da4352c commit 6c89450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ release-install:
mkdir -p ${DESTDIR}
.endif
cp -a ftp ${DESTDIR}/
.if !empty(IMAGES)
.for I in ${IMAGES}
cp -p ${I} ${DESTDIR}/${OSRELEASE}-${I}
. if defined(WITH_COMPRESSED_IMAGES) && !empty(WITH_COMPRESSED_IMAGES)
Expand All @@ -325,6 +326,7 @@ release-install:
.endfor
cd ${DESTDIR} && sha512 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA512
cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256
.endif

.include "${.CURDIR}/Makefile.inc1"
.include "${.CURDIR}/Makefile.vm"

0 comments on commit 6c89450

Please sign in to comment.