History

Add -o <outfile> to mkplatformfs.sh for feature parity

Adam Gausmann committed 6 years ago

Commit 3c12c741 parent 4ffa6891 file · +4 −2Browse files

Unified · Split

mkplatformfs.sh.in+4−2
@@ -61,6 +61,7 @@ Options · 60 unmodified lines
61 -C <file> Full path to the XBPS configuration file61 -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 directory65 -n Do not compress the image, instead print out the rootfs directory
65 -h Show this help66 -h Show this help
66 -V Show version67 -V Show version
@@ -74,7 +75,7 @@ _EOF · 7 unmodified lines
74BASEPKG=base-system75BASEPKG=base-system
75COMPRESSION="y"76COMPRESSION="y"
76 77
77while getopts "b:p:k:c:C:r:x:nhV" opt; do78while getopts "b:p:k:c:C:r:x:o:nhV" opt; do
78 case $opt in79 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
222if [ "$COMPRESSION" = "y" ]; then224if [ "$COMPRESSION" = "y" ]; then
223 # Finally we can compress the tarball, the name will include the225 # 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.xz227 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 we230 # Now that we have the tarball we don't need the rootfs anymore, so we

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t