helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 59 forks source link

Advice: The build script can be optimized #569

Open dsk502 opened 2 months ago

dsk502 commented 2 months ago

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.

probonopd commented 2 months ago

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?

dsk502 commented 2 months ago

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.

probonopd commented 2 months ago

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