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

Re: [Xen-users] /etc/sysconfig/xendomains not existing



On Wed, 2014-11-12 at 11:08 +0100, Olaf Hering wrote:
> On Wed, Nov 12, Ian Campbell wrote:
> 
> > On Mon, 2014-11-10 at 19:24 +0100, bobbisanchez@xxxxxx wrote:
> > > hi,
> > > 
> > > i am using the latest xen unstable under tinycorelinux and i am using 
> > > this command to configure
> > > ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc 
> > > --enable-rpath --libdir=/usr/lib --disable-docs --disable-debug
> > > 
> > > and this command for make
> > > $(prefix=/usr/local; make DESTDIR=/tmp/xen4tools debug=n 
> > > CONFIG_DIR=${prefix}/etc INITD_DIR=${prefix}/etc/init.d 
> > > XEN_SCRIPT_DIR=${prefix}/etc/xen/scripts BOOT_DIR=/usr/local/boot 
> > > EFI_DIR=/usr/local/efi install-tools)
> > > 
> > > but at the bootprocess i got the follow message:
> > > /etc/sysconfig/xendomains not existing
> > 
> > I thought Olaf (CCd) had sorted most of this stuff out.
> > 
> > > what can i do to get /usr/local/etc/sysconfig/xendomains in place ?
> 
> Where did it endup anyway? Is xencommons missing as well?
> 
> tools/hotplug/Linux/Makefile has:
> 
>   7 XENDOMAINS_SYSCONFIG = init.d/sysconfig.xendomains
>  50 install-initd:
>  56         $(INSTALL_DATA) $(XENDOMAINS_SYSCONFIG) 
> $(DESTDIR)$(SYSCONFIG_DIR)/xendomains
> 
> config/Linux.mk has:
>   3:SYSCONFIG_DIR = $(CONFIG_DIR)/$(CONFIG_LEAF_DIR)
> 
> 
> So the source appears to be correct. There is no need to specify CONFIG_DIR,
> INITD_DIR or XEN_SCRIPT_DIR.
> 

Looks like xendomaains still hardcodes /etc:
        
        if [ -d /etc/sysconfig ]; then
                XENDOM_CONFIG=/etc/sysconfig/xendomains
        else
                XENDOM_CONFIG=/etc/default/xendomains
        fi
        
        test -r $XENDOM_CONFIG || { echo "$XENDOM_CONFIG not existing";
                if [ "$1" = "stop" ]; then exit 0;
                else exit 6; fi; }
        
        . $XENDOM_CONFIG
        
(if whoever fixes this could fix the grammar in that error message to
"$FOO does not exist" that would be great...)

Ian.



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.