Skip to content

Commit 41d8fc4

Browse files
authored
Merge pull request #4905 from valdela1/fedora_templates
feat(templates): add Fedora 44 template; remove Fedora 41 template
2 parents 52b2aee + fff488a commit 41d8fc4

7 files changed

Lines changed: 30 additions & 10 deletions

File tree

hack/update-template-fedora.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Examples:
3636
Update the Fedora Linux image location in templates/**.yaml:
3737
$ $(basename "${BASH_SOURCE[0]}") templates/**.yaml
3838
39-
Update the Fedora Linux image location to version 41 in ~/.lima/fedora/lima.yaml:
40-
$ $(basename "${BASH_SOURCE[0]}") --version 41 ~/.lima/fedora/lima.yaml
39+
Update the Fedora Linux image location to version 44 in ~/.lima/fedora/lima.yaml:
40+
$ $(basename "${BASH_SOURCE[0]}") --version 44 ~/.lima/fedora/lima.yaml
4141
$ limactl factory-reset fedora
4242
4343
Flags:

pkg/cidata/cidata.TEMPLATE.d/boot.Linux/40-install-containerd.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@ EOF
120120
setenforce 0
121121
fi
122122
if [ "$(sudo -iu "${LIMA_CIDATA_USER}" sh -ec 'systemctl --user show --property=RefuseManualStart --value dbus')" != "yes" ]; then
123-
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" systemctl --user enable --now dbus
123+
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" systemctl --user enable --now dbus.socket
124124
fi
125-
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" containerd-rootless-setuptool.sh install
126-
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" \
125+
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" "TERM=${TERM}" containerd-rootless-setuptool.sh install
126+
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" "TERM=${TERM}" \
127127
"CONTAINERD_NAMESPACE=${CONTAINERD_NAMESPACE}" "CONTAINERD_SNAPSHOTTER=${CONTAINERD_SNAPSHOTTER}" \
128128
containerd-rootless-setuptool.sh install-buildkit-containerd
129129

130130
# $CONTAINERD_SNAPSHOTTER is configured in 20-rootless-base.sh, when the guest kernel is < 5.13, or the instance was created with Lima < 0.9.0.
131131
if [ "$(sudo -iu "${LIMA_CIDATA_USER}" sh -ec 'echo $CONTAINERD_SNAPSHOTTER')" = "fuse-overlayfs" ]; then
132-
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" containerd-rootless-setuptool.sh install-fuse-overlayfs
132+
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" "TERM=${TERM}" containerd-rootless-setuptool.sh install-fuse-overlayfs
133133
fi
134134

135135
if compare_version.sh "$(uname -r)" -ge "5.13"; then
136-
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" containerd-rootless-setuptool.sh install-stargz
136+
sudo -iu "${LIMA_CIDATA_USER}" "XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID}" "PATH=${PATH}" "TERM=${TERM}" containerd-rootless-setuptool.sh install-stargz
137137
else
138138
echo >&2 "WARNING: the guest kernel seems older than 5.13. Skipping installing rootless stargz."
139139
fi

templates/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ lima
5050
- [`debian-13`](./debian-13.yaml), `debian`: ⭐Debian GNU/Linux 13 (Trixie)
5151
- [`fedora-41`](./fedora-41.yaml): Fedora 41
5252
- [`fedora-42`](./fedora-42.yaml): Fedora 42
53-
- [`fedora-43`](./fedora-43.yaml), `fedora`: ⭐Fedora 43
53+
- [`fedora-43`](./fedora-43.yaml), Fedora 43
54+
- [`fedora-44`](./fedora-44.yaml), `fedora`: ⭐Fedora 44
5455
- [`opensuse-leap-15`](./opensuse-leap-15.yaml): openSUSE Leap 15
5556
- [`opensuse-leap-16`](./opensuse-leap-16.yaml), `opensuse-leap`, `opensuse`: ⭐openSUSE Leap 16
5657
- [`oraclelinux-8`](./oraclelinux-8.yaml): Oracle Linux 8

templates/_images/fedora-44.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
images:
2+
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/44/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-44-1.7.x86_64.qcow2"
3+
arch: "x86_64"
4+
digest: "sha256:28680fe5b371a5a82ebf43a31926e086a168e59949d03969c5093e7071f90b7f"
5+
6+
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/44/Cloud/aarch64/images/Fedora-Cloud-Base-Generic-44-1.7.aarch64.qcow2"
7+
arch: aarch64
8+
digest: "sha256:55c60a3b80d3616a08705afd0459e75fe9f03c54aba7a46e4002a41a72fa0d5b"
9+
10+
# No RISC-V release yet for Fedora 44: https://download.fedoraproject.org/pub/alt/risc-v/release/
11+
12+
# # NOTE: Intel Mac with macOS prior to 15.5 requires setting vmType to qemu
13+
# # https://github.com/lima-vm/lima/issues/3334
14+
# vmType: qemu

templates/_images/fedora.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fedora-43.yaml
1+
fedora-44.yaml

templates/fedora-44.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
minimumLimaVersion: 2.0.0
2+
3+
base:
4+
- template:_images/fedora-44
5+
- template:_default/mounts

templates/fedora.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fedora-43.yaml
1+
fedora-44.yaml

0 commit comments

Comments
 (0)