sources.list needs to support multiple dists - #124
diff --git a/tools/get_uec_image.sh b/tools/get_uec_image.sh
index 526fb44..82bc9a6 100755
--- a/tools/get_uec_image.sh
+++ b/tools/get_uec_image.sh
@@ -109,6 +109,7 @@
# Install our required packages
cp -p files/sources.list $MNTDIR/etc/apt/sources.list
+ sed -e "s,%DIST%,$DIST_NAME,g" -i $MNTDIR/etc/apt/sources.list
cp -p /etc/resolv.conf $MNTDIR/etc/resolv.conf
chroot $MNTDIR apt-get update
chroot $MNTDIR apt-get install -y $MIN_PKGS
diff --git a/tools/make_image.sh b/tools/make_image.sh
index e957c75..a69f5e3 100755
--- a/tools/make_image.sh
+++ b/tools/make_image.sh
@@ -138,6 +138,7 @@
--addpkg=$MIN_PKGS \
sudo cp -p files/sources.list $CHROOTDIR/etc/apt/sources.list
+ sed -e "s,%DIST%,$RELEASE,g" -i $CHROOTDIR/etc/apt/sources.list
sudo chroot $CHROOTDIR apt-get update
exit 0