SliTaz SliTaz Forum

You are not logged in.

#1 2011-04-23 07:37:30

funkturm
Member
Registered: 2011-03-30
Posts: 6

Live CD with binfmt_misc support

Hello all,

I create an private package "zzz_my-1.tazpkg". In this package I have some scripts and at file receipt a part of "post_install()" commands.

The post_install commads are:
.
.
mkdir -p $1/proc/sys/fs/binfmt_misc
mount -t binfmt_misc none $1/proc/sys/fs/binfmt_misc
echo ":pdf:E::pdf::/usr/bin/epdfview:" >> $1/proc/sys/fs/binfmt_misc/register
echo ":PDF:E::PDF::/usr/bin/epdfview:" >> $1/proc/sys/fs/binfmt_misc/register
.
.

When I install this package at runtime in my livesystem it works fine. When I create a live CD with tazlito I didn't get errors or warnings, but the registration are not in the live system.

Did have anyone an idea?

Thanks, best regards and happy easter.
    Christian

Offline

#2 2011-04-25 11:29:32

pankso
Administrator
Registered: 2026-06-27
Posts: 341
Website

Re: Live CD with binfmt_misc support

Hi,

At runtime the post_install are exectued and /proc is full but when you create a livecd /proc is empty and full-up at boot. So maybe try to add the mkdir/mount call to /etc/init.d/loca.sh

You can do that in post_install with something like:

echo 'mount -t binfmt_misc none $1/proc/sys/fs/binfmt_misc' >> $1/etc/init.d/loca.sh

Or modify the script and put it in $DISTRO/addfiles/etc/init.d before your generate the LiveCD.

Offline

#3 2011-05-01 13:37:53

funkturm
Member
Registered: 2011-03-30
Posts: 6

Re: Live CD with binfmt_misc support

Hi pankso,

Now I have tested your solution. I put all my commands with echo to file /etc/init.d/local.sh.

echo '/binfmt_misc mount -t binfmt_misc none $1/proc/sys/fs/binfmt_misc' >> $1/etc/init.d/local.sh

echo 'echo ":pdf:E::pdf::/usr/bin/epdfview:" >> $1/proc/sys/fs/binfmt_misc/register' >> $1/etc/init.d/local.sh

Now the Live CD creates the mountpoint and register all fileextensions.

Thanks for your fast and good support. Christian

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]