[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: support for installing unconfigured systems (VM images, Debian Live images, preinstalled mobile/tablet images)



On Wed, Jul 27, 2011 at 10:41:07AM +0700, Ivan Shmakov wrote:
> AIUI, the .postinst scripts may be re-executed with
> dpkg-reconfigure(8).
[...]

In fact, for years I've relied on precisely this behavior to
regenerate SSH host keys when cloning machines (virtual or
physical)...

   sudo rm /etc/ssh/*_key* && sudo dpkg-reconfigure openssh-server

-- 
{ IRL(Jeremy_Stanley); WWW(http://fungi.yuggoth.org/); PGP(43495829);
WHOIS(STANL3-ARIN); SMTP(fungi@yuggoth.org); FINGER(fungi@yuggoth.org);
MUD(kinrui@katarsis.mudpy.org:6669); IRC(fungi@irc.yuggoth.org#ccl);
ICQ(114362511); YAHOO(crawlingchaoslabs); AIM(dreadazathoth); }


Reply to: