From 21c35028cd0ee91e6032a19465170cbb48e8f30f Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Mon, 29 May 2017 14:46:41 +0200
Subject: [PATCH] scripts/mkimg.*: add title and description

---
 scripts/mkimg.arm.sh        |  8 ++++++++
 scripts/mkimg.minirootfs.sh |  4 ++++
 scripts/mkimg.standard.sh   | 16 ++++++++++++++++
 scripts/mkimg.xen.sh        |  4 ++++
 4 files changed, 32 insertions(+)

diff --git a/scripts/mkimg.arm.sh b/scripts/mkimg.arm.sh
index d2be7d78c061..68578d26c196 100755
--- a/scripts/mkimg.arm.sh
+++ b/scripts/mkimg.arm.sh
@@ -46,6 +46,10 @@ section_rpi_config() {
 
 profile_rpi() {
 	profile_base
+	title="Raspberry Pi"
+	desc="Includes Raspberry Pi kernel.
+		Does not include grsec patchset.
+		And much more..."
 	image_ext="tar.gz"
 	arch="armhf"
 	rpi_firmware_commit="debe2d29bbc3df84f74672fae47f3a52fd0d40f1"
@@ -76,6 +80,10 @@ section_uboot() {
 
 profile_uboot() {
 	profile_base
+	title="Generic ARM"
+	desc="Has default ARM kernel.
+		Includes the uboot bootloader.
+		Supports armhf and aarch64."
 	image_ext="tar.gz"
 	arch="aarch64 armhf armv7"
 	case "$ARCH" in
diff --git a/scripts/mkimg.minirootfs.sh b/scripts/mkimg.minirootfs.sh
index 27644f39bc75..ec2b1435dc43 100755
--- a/scripts/mkimg.minirootfs.sh
+++ b/scripts/mkimg.minirootfs.sh
@@ -14,6 +14,10 @@ create_image_rootfs() {
 }
 
 profile_minirootfs() {
+	title="Mini root filesystem"
+	desc="Minimal root filesystem.
+		For use in containers
+		and minimal chroots."
 	image_ext=tar.gz
 	output_format=rootfs
 	arch="x86 x86_64 armhf aarch64 ppc64le s390x"
diff --git a/scripts/mkimg.standard.sh b/scripts/mkimg.standard.sh
index 32b5575a2afe..4337e071059d 100755
--- a/scripts/mkimg.standard.sh
+++ b/scripts/mkimg.standard.sh
@@ -1,4 +1,8 @@
 profile_standard() {
+	title="Standard"
+	desc="Alpine as it was intended.
+		Just enough to get you started.
+		Network connection is required."
 	profile_base
 	image_ext="iso"
 	arch="x86 x86_64"
@@ -9,6 +13,10 @@ profile_standard() {
 
 profile_vanilla() {
 	profile_standard
+	title="Vanilla"
+	desc="Includes a vanilla kernel.
+		Does not include grsec patch set.
+		Suitable for debugging."
 	#arch="$arch aarch64"
 	arch="$arch ppc64le"
 	kernel_flavors="vanilla"
@@ -17,6 +25,10 @@ profile_vanilla() {
 
 profile_extended() {
 	profile_standard
+	title="Extended"
+	desc="Most common used packages included.
+		Suitable for routers and servers.
+		Runs from RAM."
 	kernel_addons="dahdi-linux xtables-addons zfs spl"
 	apks="$apks
 		dahdi-linux dahdi-tools ethtool hwdata lftp links
@@ -53,6 +65,10 @@ profile_extended() {
 
 profile_virt() {
 	profile_standard
+	title="Virtual"
+	desc="Similar to standard.
+		Slimmed down kernel.
+		Optimized for virtual systems."
 	kernel_addons=
 	kernel_flavors="virthardened"
 	kernel_cmdline="console=tty0 console=ttyS0,115200"
diff --git a/scripts/mkimg.xen.sh b/scripts/mkimg.xen.sh
index 5b725e66c05c..556abd9af989 100755
--- a/scripts/mkimg.xen.sh
+++ b/scripts/mkimg.xen.sh
@@ -9,6 +9,10 @@ section_xen() {
 
 profile_xen() {
 	profile_standard
+	title="Xen"
+	desc="Build-in support for Xen Hypervisor.
+		Includes packages targed at Xen usage.
+		Includes grsec kernel."
 	arch="x86_64"
 	kernel_cmdline="nomodeset"
 	xen_params=""
-- 
GitLab