You are not logged in.
Pages: 1
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
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
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
Pages: 1
[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]