We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c55303 + 5eee69d commit b265edbCopy full SHA for b265edb
pkg/cidata/cidata.TEMPLATE.d/boot/05-rosetta-volume.sh
@@ -11,7 +11,13 @@ if [ -f /etc/alpine-release ]; then
11
fi
12
13
mkdir -p /mnt/lima-rosetta
14
-mount -t virtiofs vz-rosetta /mnt/lima-rosetta
+
15
+#Check selinux is enabled by kernel
16
+if [ -d /sys/fs/selinux ]; then
17
+ mount -t virtiofs vz-rosetta /mnt/lima-rosetta -o context="system_u:object_r:container_file_t:s0"
18
+else
19
+ mount -t virtiofs vz-rosetta /mnt/lima-rosetta
20
+fi
21
22
if [ "$LIMA_CIDATA_ROSETTA_BINFMT" = "true" ]; then
23
echo \
0 commit comments