File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
pkg/cidata/cidata.TEMPLATE.d Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,14 @@ The directory contains the following files:
86
86
- ` user-data ` : [ Cloud-init user-data] ( https://cloudinit.readthedocs.io/en/latest/topics/format.html )
87
87
- ` meta-data ` : [ Cloud-init meta-data] ( https://cloudinit.readthedocs.io/en/latest/topics/instancedata.html )
88
88
- ` network-config ` : [ Cloud-init Networking Config Version 2] ( https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html )
89
- - ` lima.env ` : the environment variables
89
+ - ` lima.env ` : The ` LIMA_CIDATA_* ` environment variables (see below) available during ` boot.sh ` processing
90
90
- ` lima-guestagent ` : Lima guest agent binary
91
91
- ` nerdctl-full.tgz ` : [ ` nerdctl-full-<VERSION>-linux-<ARCH>.tar.gz ` ] ( https://github.com/containerd/nerdctl/releases )
92
92
- ` boot.sh ` : Boot script
93
93
- ` boot/* ` : Boot script modules
94
94
- ` provision.system/* ` : Custom provision scripts (system)
95
95
- ` provision.user/* ` : Custom provision scripts (user)
96
+ - ` etc_environment ` : Environment variables to be added to ` /etc/environment ` (also loaded during ` boot.sh ` )
96
97
97
98
Max file name length = 30
98
99
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ WARNING() {
13
13
while read -r line; do export " $line " ; done < " ${LIMA_CIDATA_MNT} " /lima.env
14
14
15
15
sed -i ' /#LIMA-START/,/#LIMA-END/d' /etc/environment
16
- cat " ${LIMA_CIDATA_MNT} /lima.environment " >> /etc/environment
16
+ cat " ${LIMA_CIDATA_MNT} /etc_environment " >> /etc/environment
17
17
18
18
# shellcheck disable=SC2163
19
19
while read -r line; do
20
20
[ " $( expr " $line " : ' #' ) " -eq 0 ] && export " $line "
21
- done < " ${LIMA_CIDATA_MNT} " /lima.environment
21
+ done < " ${LIMA_CIDATA_MNT} " /etc_environment
22
22
23
23
CODE=0
24
24
@@ -40,7 +40,7 @@ if [ -d "${LIMA_CIDATA_MNT}"/provision.system ]; then
40
40
done
41
41
fi
42
42
43
- USER_SCRIPT=" /home/${LIMA_CIDATA_USER} .linux/.lime -user-script"
43
+ USER_SCRIPT=" /home/${LIMA_CIDATA_USER} .linux/.lima -user-script"
44
44
if [ -d " ${LIMA_CIDATA_MNT} " /provision.user ]; then
45
45
if [ ! -f /etc/alpine-release ]; then
46
46
until [ -e " /run/user/${LIMA_CIDATA_UID} /systemd/private" ]; do sleep 3; done
File renamed without changes.
You can’t perform that action at this time.
0 commit comments