aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkimg.standard.sh
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-08-08 15:25:22 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2016-11-14 20:10:39 +0000
commit46f65fad4cce984a5f3cb781ee2fe18933665862 (patch)
treeb19f847e4f9b91071cfb1eab5faad4e63b9bd60b /scripts/mkimg.standard.sh
parentcdaf6e91c92269a9ea7afe5cf83fee79f0594d90 (diff)
downloadaports-46f65fad4cce984a5f3cb781ee2fe18933665862.tar.bz2
aports-46f65fad4cce984a5f3cb781ee2fe18933665862.tar.xz
scripts/mkimage.sh: scripts to build bootable alpine images
Diffstat (limited to 'scripts/mkimg.standard.sh')
-rw-r--r--scripts/mkimg.standard.sh53
1 files changed, 53 insertions, 0 deletions
diff --git a/scripts/mkimg.standard.sh b/scripts/mkimg.standard.sh
new file mode 100644
index 0000000000..7348ebe35b
--- /dev/null
+++ b/scripts/mkimg.standard.sh
@@ -0,0 +1,53 @@
+profile_standard() {
+ profile_base
+ image_ext="iso"
+ arch="x86 x86_64"
+ output_format="iso"
+}
+
+profile_vanilla() {
+ profile_standard
+ kernel_flavors="vanilla"
+}
+
+profile_extended() {
+ profile_standard
+ kernel_addons="dahdi-linux xtables-addons"
+ apks="$apks
+ dahdi-linux dahdi-tools ethtool hwdata lftp links
+ logrotate lua5.3 lsof lm_sensors lxc lxc-templates nano
+ pax-utils paxctl pciutils screen strace sudo tmux
+ usbutils v86d vim xtables-addons
+
+ acct arpon arpwatch awall bridge-utils bwm-ng
+ ca-certificates conntrack-tools cutter cyrus-sasl dhcp
+ dhcpcd dhcrelay dnsmasq email fping fprobe haserl htop
+ igmpproxy ip6tables iproute2 iproute2-qos ipsec-tools
+ iptables iputils irssi ldns-tools links
+ ncurses-terminfo net-snmp net-snmp-tools nrpe nsd
+ opennhrp openvpn openvswitch pingu ppp quagga
+ quagga-nhrp rpcbind sntpc socat ssmtp strongswan
+ sysklogd tcpdump tcpproxy tinyproxy unbound
+ wireless-tools wpa_supplicant zonenotify
+
+ btrfs-progs cksfv dosfstools cryptsetup
+ cciss_vol_status lvm2 mdadm mkinitfs mtools nfs-utils
+ parted rsync sfdisk syslinux unrar util-linux xfsprogs
+ "
+
+ local _k _a
+ for _k in $kernel_flavors; do
+ apks="$apks linux-$_k"
+ for _a in $kernel_addons; do
+ apks="$apks $_a-$_k"
+ done
+ done
+ apks="$apks linux-firmware"
+}
+
+profile_virt() {
+ profile_standard
+ kernel_flavors="virtgrsec"
+ kernel_cmdline="console=tty0 console=ttyS0,115200"
+ syslinux_serial="0 115200"
+}