Package: util-vserver
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The usage info doesn't contain the build option and should require a
vserver name.

a debootstap called with deb31 won't work. Both Testing (sarge) and
Unstable (sid) got 3.1 in /etc/debian_version.

The only way I know to get output suitable for debootstrap is:
debconf-get-selections 2> /dev/null | grep ^base-config | grep
"mirror/suite" | awk '{ print $4 }'

An other option is to parse /etc/apt/sources.list but that won't be
reliable.

- -- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCb0u5STv4ppQVDnwRAjRjAKCMjfXEKLicVPzsjHnh9HgzenHIhgCfekxA
0SHJHP+sb9WikPz+sJTaCek=
=0ywe
-----END PGP SIGNATURE-----
diff -rub util-vserver-0.30.204.orig/scripts/vserver 
util-vserver-0.30.204/scripts/vserver
--- util-vserver-0.30.204.orig/scripts/vserver  2005-01-27 22:24:44.000000000 
+0100
+++ util-vserver-0.30.204/scripts/vserver       2005-04-27 09:59:49.000000000 
+0200
@@ -267,7 +267,7 @@
        fi
        ;;
     (*)
-       echo $"Usage: $0 
{start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status}" >&2
+       echo $"Usage: $0 <vserver> 
{start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status|build}"
 >&2
        exit 2
        ;;
 esac
diff -rub util-vserver-0.30.204.orig/scripts/vserver-build.functions 
util-vserver-0.30.204/scripts/vserver-build.functions
--- util-vserver-0.30.204.orig/scripts/vserver-build.functions  2005-01-31 
23:47:42.000000000 +0100
+++ util-vserver-0.30.204/scripts/vserver-build.functions       2005-04-27 
10:14:24.000000000 +0200
@@ -127,8 +127,7 @@
        set -- $(cat /etc/redhat-release)
        DISTRIBUTION=rh$5
     elif test -e /etc/debian_version; then
-       set -- $(cat /etc/debian_version)
-       DISTRIBUTION=deb$1
+       DISTRIBUTION=`debconf-get-selections 2> /dev/null | grep ^base-config | 
grep "mirror/suite" | awk '{ print $4 }'`
     elif test -e /etc/SuSE-release; then
        set -- $(cat /etc/SuSE-release)
        DISTRIBUTION=suse$3

Reply via email to