Hello

On Wed, Apr 27, 2005 at 10:22:17AM +0200, Daniel van Eeden wrote:
> 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.

Ok, will be fixed.

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

I have built a vserver (used newvserver that call vserver ... build),
and it worked fine. Is this a very special case?

> 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 }'

Is this reliable? How about upgraded versions of Debian?

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

Agree.

Regards,

// Ola

> - -- 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


-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


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

Reply via email to