File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
pkg/cidata/cidata.TEMPLATE.d/boot Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ if [ "${LIMA_CIDATA_SKIP_DEFAULT_DEPENDENCY_RESOLUTION}" = 1 ]; then
38
38
exit 0
39
39
fi
40
40
41
+ REMOUNT_VIRTIOFS=0
42
+
41
43
if head -c 4 " $( command -v apt-get) " | grep -qP ' \x7fELF' > /dev/null 2>&1 ; then
42
44
pkgs=" "
43
45
if [ " ${LIMA_CIDATA_MOUNTTYPE} " = " reverse-sshfs" ]; then
@@ -101,6 +103,14 @@ elif command -v dnf >/dev/null 2>&1; then
101
103
dnf config-manager --disable epel\* > /dev/null 2>&1
102
104
epel_install_flags=" ${epel_install_flags} --enablerepo epel"
103
105
fi
106
+ if grep -q " Oracle Linux Server" /etc/system-release && [ " ${LIMA_CIDATA_MOUNTTYPE} " = " virtiofs" ]; then
107
+ # Enable repositories like "ol9_UEKR7"
108
+ for repo in $( dnf -q repolist | awk ' /UEK/NR>1{print $1}' ) ; do
109
+ epel_install_flags=" ${epel_install_flags} --enablerepo ${repo} "
110
+ done
111
+ extrapkgs=" ${extrapkgs} kernel-uek-modules-$( uname -r) "
112
+ REMOUNT_VIRTIOFS=1
113
+ fi
104
114
if [ -n " ${pkgs} " ]; then
105
115
# shellcheck disable=SC2086
106
116
dnf install ${dnf_install_flags} ${pkgs}
@@ -188,3 +198,7 @@ elif command -v apk >/dev/null 2>&1; then
188
198
apk add ${pkgs}
189
199
fi
190
200
fi
201
+
202
+ if [ " ${REMOUNT_VIRTIOFS} " = 1 ]; then
203
+ mount -t virtiofs -a
204
+ fi
You can’t perform that action at this time.
0 commit comments