<div dir="ltr">That sounds like a great idea to me. Could you circulate it a bit more widely, i.e. run it by the maintainers of the packages we’d want to participate, and eventually discuss it on debian-devel?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 27, 2017 at 5:19 PM, Sam Morris <span dir="ltr"><<a href="mailto:sam@robots.org.uk" target="_blank">sam@robots.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2017-03-27 at 08:25 +0200, Michael Stapelberg wrote:<br>
> Thanks for the hint. I think it would make sense to fix this in<br>
> vmdebootstrap itself, because it isn’t a Raspberry Pi-specific issue.<br>
<br>
<a href="https://codesearch.debian.net/search?q=rm+-f+%2Fetc%2Fssh%2Fssh_host_*&perpkg=1" rel="noreferrer" target="_blank">https://codesearch.debian.net/<wbr>search?q=rm+-f+%2Fetc%2Fssh%<wbr>2Fssh_host_*&perpkg=1</a><br>
<br>
It seems that every image-building tool has to re-implement the process<br>
of removing SSH host keys, /etc/machine-id, /var/lib/dbus/machine-id<br>
and so on before the image is actually created.<br>
<br>
What do you think of a more general approach to allow packages<br>
themselves to participate in the process of preparing a system for<br>
imaging?<br>
<br>
This could be a simple as having image-builders execute "run-parts<br>
/usr/lib/preimage", that directory being populated by participating<br>
packages; or a new "preimage" maintainer script, and a "dpkg-preimage"<br>
command that invokes the preimage scripts for all installed packages.<br>
<br>
Thoughts?<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Sam Morris <<a href="https://robots.org.uk/" rel="noreferrer" target="_blank">https://robots.org.uk/</a>><br>
PGP: rsa4096/CAAA AA1A CA69 A83A 892B  1855 D20B 4202 5CDA 27B9</font></span><br>______________________________<wbr>_________________<br>
Pkg-raspi-maintainers mailing list<br>
<a href="mailto:Pkg-raspi-maintainers@lists.alioth.debian.org">Pkg-raspi-maintainers@lists.<wbr>alioth.debian.org</a><br>
<a href="https://lists.alioth.debian.org/mailman/listinfo/pkg-raspi-maintainers" rel="noreferrer" target="_blank">https://lists.alioth.debian.<wbr>org/mailman/listinfo/pkg-<wbr>raspi-maintainers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div>