Commit 6408b1a6 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

Symlink all supported ubuntu versions to gutsy for debootstrap



debootstrap needs to know about a Ubuntu version to succeed, and the version
we have in Fedora doesn't know about groovy or later. Everything since Gutsy
(7.10) symlinks to gutsy anyway, so we can force that symlink into place
where it doesn't exist.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent fe075a38
......@@ -460,6 +460,12 @@
# create a cache folder (useful only when manually testing this script)
- /app/vmctl exec mkdir mkosi.cache
{% if debootstrap_base %}
- set +e
- /app/vmctl exec ln -s /usr/share/debootstrap/scripts/{{debootstrap_base}} /usr/share/debootstrap/scripts/$QEMU_VERSION ;
- set -e
{% endif %}
# run mkosi in the VM!
- /app/vmctl exec mkosi
......
......@@ -40,6 +40,12 @@ ubuntu:
- mkdir -p mkosi.extra/etc/NetworkManager/conf.d/
- touch mkosi.extra/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
# Hack around debootstrap needing an update for every Ubuntu version
# and lagging behind releases. This causes debootstrap to fail because it
# can't find the repos. Everything links to gutsy now anyway so we can force
# that symlink into place where upstream debootstrap doesn't supply it.
debootstrap_base: 'gutsy'
version_map:
'4.10': Warty
'5.04': Hoary
......
......@@ -463,6 +463,10 @@
# create a cache folder (useful only when manually testing this script)
- /app/vmctl exec mkdir mkosi.cache
- set +e
- /app/vmctl exec ln -s /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/$QEMU_VERSION ;
- set -e
# run mkosi in the VM!
- /app/vmctl exec mkosi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment