Page MenuHomeFreeBSD

vmimage.subr: noisier failure for unsupported targets
ClosedPublic

Authored by mhorne on Oct 28 2020, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 6, 5:31 AM
Unknown Object (File)
Sat, Apr 4, 9:48 AM
Unknown Object (File)
Tue, Mar 31, 7:31 PM
Unknown Object (File)
Tue, Mar 31, 3:57 PM
Unknown Object (File)
Mon, Mar 30, 8:51 AM
Unknown Object (File)
Thu, Mar 26, 9:06 AM
Unknown Object (File)
Sat, Mar 21, 3:28 AM
Unknown Object (File)
Fri, Mar 20, 7:27 AM
Subscribers

Details

Summary

The return code of write_partition_layout() doesn't bubble up, so an
invocation of make vm-release for an incorrect/unsupported target will
appear to succeed while make vm-install will fail due to missing
files. This isn't a common point of failure, but is worth handling
properly.

Upgrade this case to print a message to stderr, and exit in place. This
is okay to do since at this point in the execution of mk-vmimage.sh,
cleanup() has already been run.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable