blob: 8599227771f293f4372e0fe1fd07fe1f24f90f42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
profile_standard() {
title="Standard"
desc="Alpine as it was intended.
Just enough to get you started.
Network connection is required."
profile_base
profile_abbrev="std"
image_ext="iso"
arch="x86 x86_64 ppc64le s390x"
output_format="iso"
kernel_cmdline="nomodeset"
kernel_addons="xtables-addons"
case "$ARCH" in
s390x)
apks="$apks s390-tools"
initfs_features="$initfs_features dasd_mod qeth"
initfs_cmdline="modules=loop,squashfs,dasd_mod,qeth quiet"
;;
ppc64le)
initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage,ibmvscsi quiet"
;;
esac
}
profile_extended() {
profile_standard
profile_abbrev="ext"
title="Extended"
desc="Most common used packages included.
Suitable for routers and servers.
Runs from RAM."
arch="x86 x86_64"
kernel_addons="dahdi-linux xtables-addons zfs spl"
apks="$apks
dahdi-linux dahdi-tools ethtool hwdata lftp links
logrotate lua5.3 lsof lm_sensors lxc lxc-templates nano
pax-utils paxmark pciutils screen strace sudo tmux
usbutils v86d vim xtables-addons curl
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 rng-tools rpcbind sntpc socat ssmtp strongswan
sysklogd tcpdump tinyproxy unbound
wireless-tools wpa_supplicant zonenotify
btrfs-progs cksfv dosfstools cryptsetup
cciss_vol_status grub-bios grub-efi lvm2 mdadm mkinitfs mtools nfs-utils
parted rsync sfdisk syslinux unrar util-linux xfsprogs
zfs
"
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
profile_abbrev="virt"
title="Virtual"
desc="Similar to standard.
Slimmed down kernel.
Optimized for virtual systems."
arch="x86 x86_64"
kernel_addons=
kernel_flavors="virt"
kernel_cmdline="console=tty0 console=ttyS0,115200"
syslinux_serial="0 115200"
}
|