ISO icon indicating copy to clipboard operation
ISO copied to clipboard

Advice: The build script can be optimized

Open dsk502 opened this issue 1 year ago • 3 comments

Every time I build the helloSystem ISO, the packages and files used in building will be downloaded or installed again. It's a waste of time. I think the shell script can be modified to detect whether the packages are installed, and if their correct version are installed, skip the reinstallation.

dsk502 avatar Apr 14 '24 16:04 dsk502

At least in theory, the downloaded packages should be cached and re-used. Doesn't it work for you? Can you think of ways to improve the mechanism without introducing more complexity?

probonopd avatar Apr 14 '24 16:04 probonopd

In FreeBSD, the downloaded packages are cached, so in this script (build.sh), it will not download again. But the problem is, it will install the packages again.

dsk502 avatar Apr 14 '24 16:04 dsk502

We are building a new filesystem image from scratch each time - how could we do this without installing what shall go into it?

probonopd avatar Apr 14 '24 16:04 probonopd