HomeFreeBSD

Makefile.vm: Fix duplicate rc.conf files

Description

Makefile.vm: Fix duplicate rc.conf files

Two bugs in Makefile.vm resulted in disk images being "built" multiple
times, resulting in lines added to /etc/rc.conf being duplicated:

  1. The vm-image target reused the same "staging tree" directory for all

of its builds (multiple disk image types and multiple filesystem types).

  1. The cw-type-flavour-fs target depends on emulator-portinstall, which

did not have a 'touch ${.TARGET}' and thus re-ran every time -- and
caused the cw-type-flavour-fs target to be re-run. This was triggered
by release builds running make cloudware-release (creating the disk
images) followed by make ec2amis (which re-created the disk images
prior to uploading them).

MFC After: 1 week
Sponsored by: https://www.patreon.com/cperciva

Details

Provenance
cpercivaAuthored on Nov 27 2023, 9:29 PM
Parents
rG96950419f155: tests: don't run atf_* in a subshell
Branches
Unknown
Tags
Unknown