File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,12 @@ if [ "${LIMA_INSTALL_DOCKER}" == "true" ]; then
171171 echo xz >> " $tmp " /etc/apk/world
172172fi
173173
174+ # /proc/sys/fs/binfmt_misc must exist for /etc/init.d/procfs to load
175+ # the binfmt-misc kernel module, which will then mount the filesystem.
176+ # This is needed for Rosetta to register.
177+ mkdir -p " ${tmp} /proc/sys/fs/binfmt_misc"
178+ rc_add procfs default
179+
174180if [ " ${LIMA_INSTALL_BINFMT_MISC} " == " true" ]; then
175181 # install qemu-aarch64 on x86_64 and vice versa
176182 OTHERARCH=aarch64
@@ -283,6 +289,7 @@ if [ "${LIMA_INSTALL_CRI_DOCKERD}" == "true" ]; then
283289fi
284290
285291mkdir -p " ${tmp} /etc"
292+ mkdir -p " ${tmp} /proc"
286293mkdir -p " ${tmp} /usr"
287294
288- tar -c -C " $tmp " etc usr | gzip -9n > $HOSTNAME .apkovl.tar.gz
295+ tar -c -C " $tmp " etc proc usr | gzip -9n > $HOSTNAME .apkovl.tar.gz
Original file line number Diff line number Diff line change 33depend () {
44 after lima-init-local
55 after net
6+ after procfs
67 provide lima-init
78}
89
You can’t perform that action at this time.
0 commit comments