File tree Expand file tree Collapse file tree 2 files changed +21
-22
lines changed
pkg/cidata/cidata.TEMPLATE.d/boot Expand file tree Collapse file tree 2 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -26,28 +26,6 @@ usermod -p '*' "${LIMA_CIDATA_USER}"
26
26
sed -i ' s/AllowTcpForwarding no/AllowTcpForwarding yes/g' /etc/ssh/sshd_config
27
27
rc-service sshd reload
28
28
29
- # Create directory for the lima-guestagent socket (normally done by systemd)
30
- mkdir -p /run/user/${LIMA_CIDATA_UID}
31
- chown " ${LIMA_CIDATA_USER} " /run/user/${LIMA_CIDATA_UID}
32
- chmod 700 /run/user/${LIMA_CIDATA_UID}
33
-
34
- # Install the openrc lima-guestagent service script
35
- cat > /etc/init.d/lima-guestagent << 'EOF '
36
- #!/sbin/openrc-run
37
- supervisor=supervise-daemon
38
-
39
- name="lima-guestagent"
40
- description="Forward ports to the lima-hostagent"
41
-
42
- export XDG_RUNTIME_DIR="/run/user/${LIMA_CIDATA_UID}"
43
- command=/usr/local/bin/lima-guestagent
44
- command_args="daemon"
45
- command_background=true
46
- command_user="${LIMA_CIDATA_USER}:${LIMA_CIDATA_USER}"
47
- pidfile="${XDG_RUNTIME_DIR}/lima-guestagent.pid"
48
- EOF
49
- chmod 755 /etc/init.d/lima-guestagent
50
-
51
29
# mount /sys/fs/cgroup
52
30
rc-service cgroups start
53
31
Original file line number Diff line number Diff line change @@ -15,6 +15,27 @@ install -m 755 "${LIMA_CIDATA_MNT}"/lima-guestagent /usr/local/bin/lima-guestage
15
15
16
16
# Launch the guestagent service
17
17
if [ -f /etc/alpine-release ]; then
18
+ # Create directory for the lima-guestagent socket (normally done by systemd)
19
+ mkdir -p /run/user/${LIMA_CIDATA_UID}
20
+ chown " ${LIMA_CIDATA_USER} " /run/user/${LIMA_CIDATA_UID}
21
+ chmod 700 /run/user/${LIMA_CIDATA_UID}
22
+ # Install the openrc lima-guestagent service script
23
+ cat > /etc/init.d/lima-guestagent << 'EOF '
24
+ #!/sbin/openrc-run
25
+ supervisor=supervise-daemon
26
+
27
+ name="lima-guestagent"
28
+ description="Forward ports to the lima-hostagent"
29
+
30
+ export XDG_RUNTIME_DIR="/run/user/${LIMA_CIDATA_UID}"
31
+ command=/usr/local/bin/lima-guestagent
32
+ command_args="daemon"
33
+ command_background=true
34
+ command_user="${LIMA_CIDATA_USER}:${LIMA_CIDATA_USER}"
35
+ pidfile="${XDG_RUNTIME_DIR}/lima-guestagent.pid"
36
+ EOF
37
+ chmod 755 /etc/init.d/lima-guestagent
38
+
18
39
rc-update add lima-guestagent default
19
40
rc-service lima-guestagent start
20
41
else
You can’t perform that action at this time.
0 commit comments