This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
forked from lima-vm/alpine-lima
-
Notifications
You must be signed in to change notification settings - Fork 8
/
mkimg.lima.sh
executable file
·70 lines (70 loc) · 2.53 KB
/
mkimg.lima.sh
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
profile_lima() {
profile_standard
profile_abbrev="lima"
title="Linux Virtual Machines"
desc="Similar to standard.
Slimmed down kernel.
Optimized for virtual systems.
Configured for lima."
arch="aarch64 x86 x86_64"
initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage"
kernel_addons=
kernel_flavors="virt"
kernel_cmdline="console=hvc0 console=tty0 console=ttyS0,115200"
syslinux_serial="0 115200"
apkovl="genapkovl-lima.sh"
apks="$apks openssh-server-pam"
if [ "${LIMA_INSTALL_CA_CERTIFICATES}" == "true" ]; then
apks="$apks ca-certificates"
fi
if [ "${LIMA_INSTALL_CLOUD_INIT}" == "true" ]; then
apks="$apks cloud-init"
fi
if [ "${LIMA_INSTALL_CLOUD_UTILS_GROWPART}" == "true" ]; then
apks="$apks cloud-utils-growpart partx"
fi
if [ "${LIMA_INSTALL_CNI_PLUGINS}" == "true" ] || [ "${LIMA_INSTALL_NERDCTL_FULL}" == "true" ]; then
apks="$apks cni-plugins"
fi
if [ "${LIMA_INSTALL_CNI_PLUGIN_FLANNEL}" == "true" ]; then
apks="$apks cni-plugin-flannel"
fi
if [ "${LIMA_INSTALL_CURL}" == "true" ]; then
apks="$apks curl"
fi
if [ "${LIMA_INSTALL_E2FSPROGS_EXTRA}" == "true" ]; then
apks="$apks e2fsprogs-extra"
fi
if [ "${LIMA_INSTALL_GIT}" == "true" ]; then
apks="$apks git"
fi
if [ "${LIMA_INSTALL_DOCKER}" == "true" ]; then
apks="$apks libseccomp runc containerd tini-static device-mapper-libs"
apks="$apks docker-engine docker-openrc docker-cli docker"
apks="$apks socat xz"
fi
if [ "${LIMA_INSTALL_LIMA_INIT}" == "true" ]; then
apks="$apks e2fsprogs lsblk sfdisk shadow sudo udev"
fi
if [ "${LIMA_INSTALL_K3S}" == "true" ]; then
apks="$apks k3s"
fi
if [ "${LIMA_INSTALL_LOGROTATE}" == "true" ]; then
apks="$apks logrotate"
fi
if [ "${LIMA_INSTALL_OPENSSH_SFTP_SERVER=true}" == "true" ]; then
apks="$apks openssh-sftp-server"
fi
if [ "${LIMA_INSTALL_SSHFS}" == "true" ]; then
apks="$apks sshfs"
fi
if [ "${LIMA_INSTALL_TINI}" == "true" ]; then
apks="$apks tini-static"
fi
if [ "${LIMA_INSTALL_IPTABLES}" == "true" ] || [ "${LIMA_INSTALL_NERDCTL_FULL}" == "true" ]; then
apks="$apks iptables ip6tables"
fi
if [ "${LIMA_INSTALL_ZSTD}" == "true" ]; then
apks="$apks zstd"
fi
}