-
Notifications
You must be signed in to change notification settings - Fork 28
/
mkimg.lima.sh
executable file
·56 lines (56 loc) · 1.89 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
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 tiny-cloud-nocloud"
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_E2FSPROGS_EXTRA}" == "true" ]; then
apks="$apks e2fsprogs-extra"
fi
if [ "${LIMA_INSTALL_GIT}" == "true" ]; then
apks="$apks git"
fi
if [ "${LIMA_INSTALL_IPTABLES}" == "true" ]; then
apks="$apks iptables ip6tables"
fi
if [ "${LIMA_INSTALL_K3S}" == "true" ]; then
apks="$apks k3s"
fi
if [ "${LIMA_INSTALL_LIMA_INIT}" == "true" ]; then
apks="$apks e2fsprogs lsblk sfdisk shadow sudo udev"
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_TZDATA}" == "true" ]; then
apks="$apks tzdata"
fi
}