Skip to content

Commit fe004c8

Browse files
authored
Merge pull request #890 from AkihiroSuda/opensuse-15.4
templates: update openSUSE Leap to 15.4
2 parents 6aa168c + 6abc5af commit fe004c8

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

examples/opensuse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This example requires Lima v0.7.0 or later
22
images:
33
# Hint: run `limactl prune` to invalidate the "Current" cache
4-
- location: https://download.opensuse.org/distribution/leap/15.3/appliances/openSUSE-Leap-15.3-JeOS.x86_64-15.3-OpenStack-Cloud-Current.qcow2
4+
- location: https://download.opensuse.org/distribution/leap/15.4/appliances/openSUSE-Leap-15.4-JeOS.x86_64-15.4-OpenStack-Cloud-Current.qcow2
55
arch: "x86_64"
66
# No aarch64 OpenStack build found :(
77
mounts:

pkg/cidata/cidata.TEMPLATE.d/boot/30-install-packages.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
set -eux
33

44
update_fuse_conf() {
5-
# Modify /etc/fuse.conf to allow "-o allow_root"
5+
# Modify /etc/fuse.conf (/etc/fuse3.conf) to allow "-o allow_root"
66
if [ "${LIMA_CIDATA_MOUNTS}" -gt 0 ]; then
7-
if ! grep -q "^user_allow_other" /etc/fuse.conf; then
8-
echo "user_allow_other" >>/etc/fuse.conf
7+
fuse_conf="/etc/fuse.conf"
8+
if [ -e /etc/fuse3.conf ]; then
9+
fuse_conf="/etc/fuse3.conf"
10+
fi
11+
if ! grep -q "^user_allow_other" "${fuse_conf}"; then
12+
echo "user_allow_other" >>"${fuse_conf}"
913
fi
1014
fi
1115
}

pkg/hostagent/requirements.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ A possible workaround is to run "apt-get install sshfs" in the guest.
104104
`,
105105
})
106106
req = append(req, requirement{
107-
description: "/etc/fuse.conf to contain \"user_allow_other\"",
107+
description: "/etc/fuse.conf (/etc/fuse3.conf) to contain \"user_allow_other\"",
108108
script: `#!/bin/bash
109109
set -eux -o pipefail
110-
if ! timeout 30s bash -c "until grep -q ^user_allow_other /etc/fuse.conf; do sleep 3; done"; then
111-
echo >&2 "/etc/fuse.conf is not updated to contain \"user_allow_other\""
110+
if ! timeout 30s bash -c "until grep -q ^user_allow_other /etc/fuse*.conf; do sleep 3; done"; then
111+
echo >&2 "/etc/fuse.conf (/etc/fuse3.conf) is not updated to contain \"user_allow_other\""
112112
exit 1
113113
fi
114114
`,
115-
debugHint: `Append "user_allow_other" to /etc/fuse.conf in the guest`,
115+
debugHint: `Append "user_allow_other" to /etc/fuse.conf (/etc/fuse3.conf) in the guest`,
116116
})
117117

118118
}

0 commit comments

Comments
 (0)