From 2aebc870a4d3358d7db196ecf53ccbf41bc54d33 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Wed, 31 Dec 2014 13:39:40 +0100 Subject: [PATCH] Fix extlinux config for squeeze --- bootstrapvz/common/tasks/boot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrapvz/common/tasks/boot.py b/bootstrapvz/common/tasks/boot.py index 81c8e02..dbc419d 100644 --- a/bootstrapvz/common/tasks/boot.py +++ b/bootstrapvz/common/tasks/boot.py @@ -155,6 +155,10 @@ class ConfigureExtlinux(Task): @classmethod def run(cls, info): + if info.release_codename == 'squeeze': + # On squeeze /etc/default/extlinux is generated when running extlinux-update + log_check_call(['chroot', info.root, + 'extlinux-update']) from bootstrapvz.common.tools import sed_i extlinux_def = os.path.join(info.root, 'etc/default/extlinux') sed_i(extlinux_def, r'^EXTLINUX_PARAMETERS="([^"]+)"$',