From 09f615034a882d9c0285d33be8332776cd4f7114 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 23 Jul 2014 01:49:51 +0100 Subject: [PATCH] Apply a grievous hack to get debootstrap working against ubuntu-rtm series. --- debian/changelog | 2 ++ live-build/auto/config | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/debian/changelog b/debian/changelog index c86bc881..5df96904 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ livecd-rootfs (2.226) UNRELEASED; urgency=medium * Disable apt authentication checks when building ubuntu-rtm images against dogfood (that test archive is signed, but not with a very useful key). + * Apply a grievous hack to get debootstrap working against ubuntu-rtm + series. -- Colin Watson Wed, 23 Jul 2014 01:48:35 +0100 diff --git a/live-build/auto/config b/live-build/auto/config index ae2a3f9f..a16529fb 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -573,6 +573,22 @@ if [ "$EXTRA_PPAS" ]; then config/archives/extra-ppas.key.binary fi +case $SUBPROJECT in + ubuntu-rtm|ubuntu-rtm/*) + # debootstrap doesn't know about ubuntu-rtm series directly. Rather + # than having to teach it, we employ a few hacks to make it use the + # Ubuntu script instead. + mkdir -p config/fake_debootstrap_dir/scripts + ln -s /usr/share/debootstrap/devices.tar.gz \ + config/fake_debootstrap_dir/ + ln -s /usr/share/debootstrap/functions config/fake_debootstrap_dir/ + ln -s /usr/share/debootstrap/scripts/gutsy \ + "config/fake_debootstrap_dir/scripts/$SUITE" + echo 'export DEBOOTSTRAP_DIR="$PWD/config/fake_debootstrap_dir"' \ + >> config/bootstrap + ;; +esac + # cribbed from cdimage, perhaps this should be a small helper script in germinate? add_inheritance () { case " $inherit " in