[Pkg-xen-devel] Bug#680102: More fixes for xen-api in Wheezy

Mike McClurg mike.mcclurg at gmail.com
Sat Jul 7 21:57:39 UTC 2012


On Sat, Jul 7, 2012 at 10:40 PM, Thomas Goirand <thomas at goirand.fr> wrote:
> On 07/08/2012 04:22 AM, Mike McClurg wrote:
>> So 680102 is due to there not being an /etc/firstboot.d/ directory (as
>> the ticket explains). I think we can fix this issue simply by
>> mkdir'ing the directory /etc/firstboot.d/data at some point in xapi's
>> installation. This would allow the pool-eject to proceed, but I think
>> that there might be problems when the host reboots: since none of the
>> firstboot scripts will be called, the host might not reinitialise
>> properly.
>
> Well, writing in /etc dynamically is *forbidden* by the Debian policy.
> The /etc folder is for configuration, not something else! If you were
> using /var/lib/xcp-xapi, ok, but not /etc.
>
> Could you think about a better way to fix?

Sure, we can change what xapi thinks is the firstboot directory. See
ocaml/xapi/xapi_globs.ml:593 :

let first_boot_dir = "/etc/firstboot.d/"

We could change that to "/var/lib/xcp/firstboot.d". I'd like to know
whether creating the /etc/firstboot.d directory will solve the problem
though, before we make that change.

Mike





More information about the Pkg-xen-devel mailing list