File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
pkg/cidata/cidata.TEMPLATE.d Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 54
54
55
55
USER_SCRIPT=" /home/${LIMA_CIDATA_USER} .linux/.lima-user-script"
56
56
if [ -d " ${LIMA_CIDATA_MNT} " /provision.user ]; then
57
- if [ ! -f /sbin/openrc-init ]; then
57
+ if [ ! -f /sbin/openrc-run ]; then
58
58
until [ -e " /run/user/${LIMA_CIDATA_UID} /systemd/private" ]; do sleep 3; done
59
59
fi
60
60
for f in " ${LIMA_CIDATA_MNT} " /provision.user/* ; do
Original file line number Diff line number Diff line change 7
7
8
8
# accept any incoming COLORTERM environment variable
9
9
sed -i ' s/^AcceptEnv LANG LC_\*$/AcceptEnv COLORTERM LANG LC_*/' /etc/ssh/sshd_config
10
- if [ -f /sbin/openrc-init ]; then
10
+ if [ -f /sbin/openrc-run ]; then
11
11
rc-service --ifstarted sshd reload
12
12
elif command -v systemctl > /dev/null 2>&1 ; then
13
13
if systemctl -q is-active ssh; then
Original file line number Diff line number Diff line change 18
18
install -m 755 " ${LIMA_CIDATA_MNT} " /lima-guestagent /usr/local/bin/lima-guestagent
19
19
20
20
# Launch the guestagent service
21
- if [ -f /sbin/openrc-init ]; then
21
+ if [ -f /sbin/openrc-run ]; then
22
22
# Install the openrc lima-guestagent service script
23
23
cat > /etc/init.d/lima-guestagent << 'EOF '
24
24
#!/sbin/openrc-run
You can’t perform that action at this time.
0 commit comments