Package: xen-tools
Version: 2.8-2
Severity: minor

I had some minor problems with xen-create-image that I could track to
two of the hooks called by xen-create-image.

The first one: hook 15-disable-hwclock.sh tries to chmod files without
checking their existence. While that's not a failure, the error message
annoyed me.

The second one: in our setup we use apt-proxy as a mirror not only for the
normal package repositories but for security.debian.org too. Therefore we
don't use a proxy setup. Consequently hook 20-setup-apt fails to get the
security updates. I changed this hook to copy /etc/apt/sources.list of
the Xen-Host instead of generating a fresh one. That way I get an
sources.list that fits into the environment we use.

#---- patch follows ----
diff -ur /usr/lib/xen-tools/debian.d.orig/15-disable-hwclock 
/usr/lib/xen-tools/debian.d/15-disable-hwclock
--- /usr/lib/xen-tools/debian.d.orig/15-disable-hwclock 2007-07-26 
10:01:42.000000000 +0200
+++ /usr/lib/xen-tools/debian.d/15-disable-hwclock      2007-07-26 
10:03:15.000000000 +0200
@@ -29,12 +29,14 @@
 #
 #  Disable the startup scripts from all runlevels.
 #
-chmod -x ${prefix}/etc/init.d/hwclock.sh
-chmod -x ${prefix}/etc/init.d/hwclockfirst.sh
+[ -f ${prefix}/etc/init.d/hwclock.sh ] \
+  && chmod -x ${prefix}/etc/init.d/hwclock.sh
+[ -f ${prefix}/etc/init.d/hwclockfirst.sh ] \
+  && chmod -x ${prefix}/etc/init.d/hwclockfirst.sh



 #
 # Log our finish
 #
-logMessage Script $0 finished.
\ No newline at end of file
+logMessage Script $0 finished.
diff -ur /usr/lib/xen-tools/debian.d.orig/20-setup-apt 
/usr/lib/xen-tools/debian.d/20-setup-apt
--- /usr/lib/xen-tools/debian.d.orig/20-setup-apt       2007-07-26 
10:12:10.000000000 +0200
+++ /usr/lib/xen-tools/debian.d/20-setup-apt    2007-07-26 10:17:37.000000000 
+0200
@@ -57,29 +57,9 @@


 #
-# Setup the sources.list file for new installations of Debian GNU/Linux.
+# Copy the sources.list file for new installations of Debian GNU/Linux.
 #
-cat <<E_O_APT > ${prefix}/etc/apt/sources.list
-#
-#  /etc/apt/sources.list
-#
-
-
-#
-# ${dist}
-#
-deb     ${mirror}     ${dist} main contrib non-free
-deb-src ${mirror}     ${dist} main contrib non-free
-
-#
-#  Security updates
-#
-deb     http://security.debian.org/ stable/updates  main contrib non-free
-deb-src http://security.debian.org/ stable/updates  main contrib non-free
-
-
-E_O_APT
-
+cp /etc/apt/sources.list ${prefix}/etc/apt/sources.list


 #
#----- patch ends -----

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-xen-vserver-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages xen-tools depends on:
ii  debootstrap                   0.3.3.2    Bootstrap a basic Debian system
ii  libtext-template-perl         1.44-1.1   Text::Template perl module
ii  perl-modules                  5.8.8-7    Core Perl modules

Versions of packages xen-tools recommends:
ii  perl-doc                      5.8.8-7    Perl documentation
pn  reiserfsprogs                 <none>     (no description available)
pn  rpmstrap                      <none>     (no description available)
ii  xen-hypervisor-3.0.3-1-i386-p 3.0.3-0-2  The Xen Hypervisor on i386
with pa
pn  xfsprogs                      <none>     (no description available)

-- no debconf information

Regards,

Mathias Weidner
-- 
Tel.: +49 3491 44630
Fax.: +493491 443000
Kommunale Datenverarbeitungsgesellschaft mbH
Lutherstadt Wittenberg
Amtsgericht Stendal
HRB  10877
Geschäftsführer: Dipl.-Ing. Martin Ebert


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to