aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkimg.minirootfs.sh
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-12-15 16:14:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-12-16 09:50:00 +0000
commit99afbc0aaa18bb50949e16c2cd9d146110205769 (patch)
tree13f12b3405840784d575707d6201f3ba90948685 /scripts/mkimg.minirootfs.sh
parentfb36c21471581754b91298d1a03e240f9fa0d68f (diff)
downloadaports-99afbc0aaa18bb50949e16c2cd9d146110205769.tar.gz
aports-99afbc0aaa18bb50949e16c2cd9d146110205769.tar.bz2
aports-99afbc0aaa18bb50949e16c2cd9d146110205769.tar.xz
scripts: add minirootfs release image
Diffstat (limited to 'scripts/mkimg.minirootfs.sh')
-rwxr-xr-xscripts/mkimg.minirootfs.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/mkimg.minirootfs.sh b/scripts/mkimg.minirootfs.sh
new file mode 100755
index 0000000000..4753f093f1
--- /dev/null
+++ b/scripts/mkimg.minirootfs.sh
@@ -0,0 +1,21 @@
+section_minirootfs() {
+ return 0
+}
+
+create_image_rootfs() {
+ local _script=$(readlink -f "$scriptdir/genrootfs.sh")
+ local output_file="$(readlink -f ${OUTDIR:-.})/$output_filename"
+
+ (cd "$OUTDIR"; fakeroot "$_script" -k "$APKROOT"/etc/apk/keys \
+ -r "$APKROOT"/etc/apk/repositories \
+ -o "$output_file" \
+ -a $ARCH \
+ $rootfs_apks)
+}
+
+profile_minirootfs() {
+ image_ext=tar.gz
+ output_format=rootfs
+ arch="x86 x86_64 armhf aarch64"
+ rootfs_apks="busybox alpine-baselayout alpine-keys apk-tools libc-utils"
+}