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