From: Ian Jackson Subject: debian-installer hooks between early_command and late_command Date: Wed, 10 Jun 2015 13:29:01 +0100 Message-ID: <21880.11661.473720.601025@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z2f8Q-00064N-Ff for xen-devel@lists.xenproject.org; Wed, 10 Jun 2015 12:29:34 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org After talking to Ian C about how to organise microcode updates in osstest, I asked Colin Watson: 13:20 col: DYK if there's a d-i hook command a la late_command but which runs after / is mounted but before lots of stuff is installed ? 13:20 (We need this in squeeze.) 13:20 wheezy I mean 13:22 Diziet: Before or after the base system is installed? 13:23 col: Well, in our case, we want it to happen before update-initramfs, but we don't care about whether there's a base system. 13:23 We can mkdir what we need to exist. 13:25 Diziet: Write a preseed/early_command that itself writes out (and chmod +x-es) a script in /usr/lib/base-installer.d/ 13:25 In /target ? 13:25 No, in / 13:25 It should operate on /target if it needs to 13:25 Right. 13:25 It does. 13:25 Thanks for the tip! 13:25 Diziet: Or /usr/lib/post-base-installer.d/ will do in this case too (that runs between debootstrap and the kernel being installed), if you decide you want to operate after debootstrap 13:26 Marvellous. 13:26 Can I quote you in public (eg a commit message) on this ? 13:27 (Perhaps, better, I should c&p this into an email to ijc CC xen-devel, if you agree.) 13:27 Oh, in fact /usr/lib/base-installer.d/ runs after debootstrap in Debian too, just before setting up /dev and apt. 13:27 Diziet: Feel free. 13:27 Thanks. Ian.