Apply a grievous hack to get debootstrap working against ubuntu-rtm

series.
This commit is contained in:
Colin Watson 2014-07-23 01:49:51 +01:00
parent a0abe0888b
commit 09f615034a
2 changed files with 18 additions and 0 deletions

2
debian/changelog vendored
View File

@ -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 <cjwatson@ubuntu.com> Wed, 23 Jul 2014 01:48:35 +0100

View File

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