[Cuis-dev] [TIP] Executable images on Linux

Gerald Klix cuis.01 at klix.ch
Sat Mar 8 10:25:54 PST 2025


Hi all,

I stead of complaining again, about Cuis7.2.image being executable
(it has the executable bit that on Unix), I decided to make the best
oi it.

Just execute this snipped of code as root and the kernel magically
starts your OSVM (at least for 64bit images):

echo ':osvm68021:M::\xB5\x09\x01\x00::<path to squeak>:C' > 
/proc/sys/fs/binfmt_misc/register

Of course <path to squeak> needs to be replaced with the absolute
filename of your real VM.


Using the old fashioned Devuan distribution I placed
I script at

/etc/boot.d/register_osvm

The whole script looks like this:

#!/bin/sh
echo 
':osvm68021:M::\xB5\x09\x01\x00::/home/bear/HaverWorks/VM/Linux/squeak:C' 
 > /proc/sys/fs/binfmt_misc/register

All scripts under /etc/boot.d/ are executed by rc.local
with this distribution.



HTH,

Gerald


More information about the Cuis-dev mailing list