[Cuis-dev] [TIP] Executable images on Linux
Luciano Notarfrancesco
luchiano at gmail.com
Sun Mar 9 07:24:42 PDT 2025
Cool, I didn’t know you could do this! Which reminds me, sometimes I wonder
if we really need the sources and changes files outside the image, it’s
just 8MB… perhaps it would be nicer for images to be self-contained
(although the changes file still makes sense for recovery in case the image
breaks).
On Sun, Mar 9, 2025 at 01:26 Gerald Klix via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:
> 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
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250309/d710196f/attachment.htm>
More information about the Cuis-dev
mailing list