For the xen-tools case there is a simpler workaround, in the role-script just temporarily replace the hostname by a custom script ($prefix beeing the chroot environement..), e.g.:
.. mv ${prefix}/bin/hostname ${prefix}/bin/hostname.backup cat > ${prefix}/bin/hostname << EOF #!/bin/bash echo "${hostname}" EOF chmod 755 ${prefix}/bin/hostname installDebianPackage ${prefix} ssmtp mv ${prefix}/bin/hostname.backup ${prefix}/bin/hostname .. (setting the hostname via the binary in chroot is not really an option because it would change also the hostname of the Dom0..) cheers mic -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org