Page MenuHomeFreeBSD

mkisoimages.sh: Avoid creating temporary files in the current directory
ClosedPublic

Authored by jrtc27 on Jan 22 2022, 1:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 25, 11:03 PM
Unknown Object (File)
Thu, Apr 24, 9:56 PM
Unknown Object (File)
Tue, Apr 22, 8:55 AM
Unknown Object (File)
Mon, Apr 21, 3:12 PM
Unknown Object (File)
Sun, Apr 20, 1:10 PM
Unknown Object (File)
Sun, Apr 20, 1:47 AM
Unknown Object (File)
Sat, Apr 19, 7:53 PM
Unknown Object (File)
Sat, Apr 19, 6:51 PM

Details

Summary

Currently the current directory is the parent of the rootfs directory,
but this will change in order to support NO_ROOT builds that use a
metalog manifest, since those need to have the current directory be the
rootfs itself in order for the relative paths to be correct, and we do
not want the non-METALOG case (which passes the directory to makefs) to
pick up leftover temporary .img files from a previous failed build.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks added a subscriber: brooks.

I wonder if these want a trap or exit handler

This revision is now accepted and ready to land.Jan 22 2022, 6:47 PM

I wonder if these want a trap or exit handler

The make-memstick.sh's all document that they deliberately don't clean up on error in order to aid in debugging what went wrong. Presumably mkisoimages.sh is the same, just without documenting it (though whether that was the original intent, who knows).