mprov-ng / mprov_jobserver

The heart and soul of mProv. The mprov jobserver is the background work horse that handles all the heavy lifting.
Apache License 2.0
2 stars 1 forks source link

create a repack script for repacking an image without running any scripts #90

Open jhujasonw opened 5 months ago

jhujasonw commented 5 months ago
#!/bin/bash
# example repack script, needs tweaking.

rm $1/`basename $1`.img -f
tar  -C $1 --one-file-system -pScf - ./ | gzip -1 -c > /tmp/`basename $1`.img
mv /tmp/`basename $1`.img $1/`basename $1`.img