summaryrefslogtreecommitdiff
path: root/adelie-build-txz
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-10 15:58:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-10 15:58:31 -0500
commit085c88296760818170d361542c15d7bcf8c9e3cf (patch)
treeb3bd78c957537286eceb92e443bcbd91a6dde962 /adelie-build-txz
parentd7fb725f494c7cd193d4e39b559328de0835985e (diff)
downloadimage-1.0-BETA1.tar.gz
image-1.0-BETA1.tar.bz2
image-1.0-BETA1.tar.xz
image-1.0-BETA1.zip
adelie-build-txz: add --mini option for minirootfs1.0-BETA1
Diffstat (limited to 'adelie-build-txz')
-rwxr-xr-xadelie-build-txz16
1 files changed, 12 insertions, 4 deletions
diff --git a/adelie-build-txz b/adelie-build-txz
index 1ae12fa..f249480 100755
--- a/adelie-build-txz
+++ b/adelie-build-txz
@@ -47,7 +47,7 @@ ensure_commands() {
usage() {
- printf 'usage: %s [-a ARCH] [-s] [-v VERSION] [--help]\n\n' $PROGNAME
+ printf 'usage: %s [-a ARCH] [--mini] [-s] [-v VERSION] [--help]\n\n' $PROGNAME
printf 'Create an Adélie Linux root FS tarball (.TXZ) using the specified parameters.\n\n'
printf 'Default ARCH: %s\n' $def_arch
printf 'Default VERSION: %s\n' $def_ver
@@ -64,6 +64,9 @@ while [ -n "$1" ]; do
usage
exit
;;
+ --mini)
+ declare -r MINI=yes
+ ;;
-s | --sign)
declare -r SIGN=yes
;;
@@ -110,8 +113,13 @@ clean_dirs() {
install_pkgs() {
header "Installing base system to tar root..."
- declare -r PACKAGES=$(cat packages 2>/dev/null || fatal 'No core packages specified')
- declare -r ARCH_PKGS=$(cat packages-$ARCH 2>/dev/null || echo '')
+ if test -n "${MINI+mini}"; then
+ declare -r PACKAGES="adelie-base-posix bash-binsh ssmtp"
+ declare -r ARCH_PKGS=""
+ else
+ declare -r PACKAGES=$(cat packages 2>/dev/null || fatal 'No core packages specified')
+ declare -r ARCH_PKGS=$(cat packages-$ARCH 2>/dev/null || echo '')
+ fi
mkdir -p rootfs-$ARCH/etc/apk/keys
cp 'packages@adelielinux.org.pub' rootfs-$ARCH/etc/apk/keys/
@@ -179,7 +187,7 @@ tar_it() {
header 'Creating compressed file system image...'
cd rootfs-$ARCH
- tar -cJf ../out/adelie-rootfs-$ARCH-$VERSION-$(date +%Y%m%d).txz .
+ tar -cJf ../out/adelie-rootfs-${MINI+mini-}$ARCH-$VERSION-$(date +%Y%m%d).txz .
}
# in case we want to add phase support like adelie-build-cd has later