Clarifying the FAQ: Running a script after booting from CD
After booting using a CD, I would like a script to run.
I did find an entry in the FAQ at:
http://wiki.debian.org/DebianLive/FAQ#Q.3AHowdoIaddascriptrunningimmediatelyafterallotherscriptswhenthelivesystemboots.3F
I don't understand the instructions. Maybe somebody could clarify. Here
is how I interpreted to answer in the FAQ.
So I created the directory that didn't exist.
$ mkdir -p
config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/99script
and then I ran chmod -x on that path
$ chmod +x
config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/99script
I got my script which has already had its permissions and executable flag
set and copied it there
$ cp script.scr
~/live/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/99script
but when I become root and:
# lh_build
It goes on with all it's business and exits successfully, but never
creates an image. The tail end of it's output is below.
Hit http://ftp.us.debian.org lenny/main Packages
Reading package lists... Done
P: Deconfiguring file /etc/hostname
P: Deconfiguring file /bin/hostname
P: Deconfiguring file /etc/resolv.conf
P: Deconfiguring file /etc/hosts
P: Begin unmounting filesystems...
The reference in the FAQ for the example script says it can be found at
/usr/share/live-helper/examples/hooks/update-initramfs.sh I followed the
instructions in the file by copying it to ~/live/config/chroot_local-hooks
, but lh_build exited with an error.
I have been able to successfully create an image by running lh_config and
then lh_build in a separate directory with none of the files modified.
Tim Legg
Reply to: