lima-vm / alpine-lima

Create an alpine based image for lima
Apache License 2.0
40 stars 26 forks source link

Create `/proc/sys/fs/binfmt_misc` and setup `/etc/init.d/procfs` #102

Closed jandubois closed 1 year ago

jandubois commented 1 year ago

Without this change the binfmt_misc filesystem isn't mounted and rosetta cannot be registered.

This isn't needed for /etc/init.d/qemu-binfmt because it loads the binfmt-misc kernel module itself if the filesystem isn't yet mounted.

Without this change (in /var/log/lima-init.log):

/mnt/lima-cidata/boot/05-rosetta-volume.sh: line 13: can't create /proc/sys/fs/binfmt_misc/register: nonexistent directory