Browse Source

Use lsb_release to get codename rather than /etc/lsb-release

It seems like a lsb_release program should be available on any distro if
the appropriate package is installed. So it seems better to use
lsb_release instead of /etc/lsb-release, because Debian doesn't appear
to have /etc/lsb-release.
pull/100/head
Joseph Bisch 7 years ago
parent
commit
dbf04f4ece
  1. 2
      bin/make-base-vm
  2. 2
      target-bin/bootstrap-fixup.in

2
bin/make-base-vm

@ -74,7 +74,7 @@ if [ $ARCH = "amd64" -a $SUITE = "hardy" ]; then @@ -74,7 +74,7 @@ if [ $ARCH = "amd64" -a $SUITE = "hardy" ]; then
FLAVOUR=server
fi
addpkg=pciutils,build-essential,git-core,subversion,language-pack-en,wget
addpkg=pciutils,build-essential,git-core,subversion,language-pack-en,wget,lsb-release
if [ $LXC = "1" ]; then
addpkg=$addpkg,lxc

2
target-bin/bootstrap-fixup.in

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
set -e
. /etc/lsb-release
DISTRIB_CODENAME=`lsb_release -cs`
echo "deb http://HOSTIP:3142/archive.ubuntu.com/ubuntu $DISTRIB_CODENAME main universe" > $1/etc/apt/sources.list
echo "deb http://HOSTIP:3142/security.ubuntu.com/ubuntu $DISTRIB_CODENAME-security main universe" >> $1/etc/apt/sources.list

Loading…
Cancel
Save