Packaging improvements

- compress images with xz by default (and decompress on install)
- add help menu and command line argument parsing to package.sh
- display packaging status if `pv` command available
This commit is contained in:
2024-03-11 16:29:59 -07:00
parent a424394109
commit 50cb23a4c7
3 changed files with 95 additions and 42 deletions
+4
View File
@@ -41,6 +41,10 @@ for f in $(find $LOCATION/images -name "*.img" 2>/dev/null);do
echo "importing docker image: $f"
docker load -i $f
done
for f in $(find $LOCATION/images -name "*.img.xz" 2>/dev/null);do
echo "importing docker image: $f"
xz -d -c $f | docker load
done
# install systemd service unless running in a docker environment
if [ ! -f /.dockerenv ]; then