Closed umlaeute closed 10 months ago
Hey, I just need to find time to go over it. I just have a lot of family stuff going on the past few days. did not forget you.
Also - what did you use to detect all the spelling errors? :)
Sorry for being impatient. Thx for merging
Also - what did you use to detect all the spelling errors? :)
apt-get install codespell
codespell .
base build system
the
make_custom_pi_os
script now allows more variants to download directly, namely the non-lite variants of raspios.the
build_custom_os
script (and therefore thebuild_dist
script for the various custom distributions) now accepts a few options:-h
to print a short help about the script (mostly for documenting thevariant
argument. i found myself running./build_dist -h
which started a build for some unknown -h variant)-l <logfile>
for setting the logfile directly (just because we can)the
custompios
scriptlet now checks ifsfdisk
is available (and required), and aborts early with a warning. (on my Debian system,sfdisk
lives in/sbin
, which is not in my PATH. oftentimes i accidentally run./build_dist
as an ordinary (non-root) user, which would happily work away only to fail at the end when resizing the image. with this change it now fails after a few seconds, rather than after an hour, and i'm reminded to run throughsudo
...in
common.sh
i've changed mostecho
invocations to use their colour variants (since the build log is so verbose with all thoseset -x
, i really like the things that the build script wants to tell me to stand out visually).also in
common.sh
, i've improved thedetach_all_loopback()
function, to test possible loop-devices for being a block device rather than a regular file.modules
the
pkgupgrade
module now usesapt-get
instead ofapt
to quote from
man apt
:there's a new
PKGUPGRADE_CLEANUP
variable that can be set ton
(or really: anything except the defaulty
), in which case the apt-cache is not cleaned up. this is cool if you do not want to download the tons of deb packages for each build without setting up an apt-cacher.minor stuff
i've added a few
.gitignore
files to thedist_example
, in order to make sure that image-files are not accidentally committed to my precious git repository.i've also run
codespell
over the sources and fixed spelling errors.finally, the build process now shows the date when the build was started resp. finished. i find it nice to see how long it took, even when not closely watching the script)
feel free to cherry pick, or just merge the whole bunch.