Live CD with binfmt_misc support
(3 posts) (2 voices)-
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. ChristianPosted 13 years ago #
-
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.Posted 13 years ago #
-
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.shNow the Live CD creates the mountpoint and register all fileextensions.
Thanks for your fast and good support. Christian
Posted 13 years ago #
Reply
You must log in to post.