Re: Extra files with simple-cdd
On Thu, Jun 14, 2007 at 10:44:24AM -0500, David Jimenez wrote:
> I'm trying to build a debian install cd using simple-cdd with custom
> packages and configuration files like SSH keys for remote access an so
> mkdir -p /home/sensor/.ssh
> cp $DIR/authorized_keys2 /home/sensor/.ssh/authorized_keys2
> but the cp can't find "make stat" the file authorized_keys2. What's wrong??
> I found in /usr/lib/finish-install.d/14simple-cdd that the
> default.postinst is executed using a copy located in
> /target/usr/local/simple-cdd using a function called "in-target", but
> I couldn't find any reference to that.
in-target is essentially a wrapper that does "chroot /target/" and a few
other things. so what /usr/lib/finish-install.d/14simple-cdd does is
copies the file into the chroot, and executes it.
> How can I copy an extra file to the installed system??
you probably have to mount (and unmount) the cdrom as part of your
if that proves impossible, maybe we can copy the contents of
/cdrom/simple-cdd to /target/usr/local/simple-cdd (or somewhere else) as
part of the finish-install.d/14simple-cdd script. kind of ugly, but the
postinst scripts are kind of ugly in general.
i debated weather the *.postinst should be run from debian-intaller or
within the target system... i really don't want to have both *.postinst
and *.postinst-but-not-chrooted :)