Unified · Split
| @@ -61,6 +61,7 @@ Options · 60 unmodified lines | ||
| 61 | 61 | -C <file> Full path to the XBPS configuration file |
| 62 | 62 | -r <repo> Set XBPS repository (may be set multiple times) |
| 63 | 63 | -x <num> Use <num> threads to compress the image (dynamic if unset) |
| 64 | + -o <file> Filename to write the PLATFORMFS archive to | |
| 64 | 65 | -n Do not compress the image, instead print out the rootfs directory |
| 65 | 66 | -h Show this help |
| 66 | 67 | -V Show version |
| @@ -74,7 +75,7 @@ _EOF · 7 unmodified lines | ||
| 74 | 75 | BASEPKG=base-system |
| 75 | 76 | COMPRESSION="y" |
| 76 | 77 | |
| 77 | −while getopts "b:p:k:c:C:r:x:nhV" opt; do | |
| 78 | +while getopts "b:p:k:c:C:r:x:o:nhV" opt; do | |
| 78 | 79 | case $opt in |
| 79 | 80 | b) BASEPKG="$OPTARG" ;; |
| 80 | 81 | p) EXTRA_PKGS="$OPTARG" ;; |
| @@ -83,6 +84,7 @@ while getopts "b:p:k:c:C:r:x:nhV" opt; do · 2 unmodified lines | ||
| 83 | 84 | C) XBPS_CONFFILE="-C $OPTARG" ;; |
| 84 | 85 | r) XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=$OPTARG" ;; |
| 85 | 86 | x) COMPRESSOR_THREADS="$OPTARG" ;; |
| 87 | + o) FILENAME="$OPTARG" ;; | |
| 86 | 88 | n) COMPRESSION="n" ;; |
| 87 | 89 | h) usage; exit 0 ;; |
| 88 | 90 | V) echo "$PROGNAME @@MKLIVE_VERSION@@"; exit 0 ;; |
| @@ -222,7 +224,7 @@ fi · 133 unmodified lines | ||
| 222 | 224 | if [ "$COMPRESSION" = "y" ]; then |
| 223 | 225 | # Finally we can compress the tarball, the name will include the |
| 224 | 226 | # platform and the date on which the tarball was built. |
| 225 | − tarball=void-${PLATFORM}-PLATFORMFS-$(date '+%Y%m%d').tar.xz | |
| 227 | + tarball=${FILENAME:-void-${PLATFORM}-PLATFORMFS-$(date '+%Y%m%d').tar.xz} | |
| 226 | 228 | run_cmd "tar -cp --posix --xattrs -C $ROOTFS . | xz -T${COMPRESSOR_THREADS:-0} -9 > $tarball " |
| 227 | 229 | |
| 228 | 230 | # Now that we have the tarball we don't need the rootfs anymore, so we |