mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Fix extlinux config for squeeze
This commit is contained in:
parent
81060b2439
commit
2aebc870a4
1 changed files with 4 additions and 0 deletions
|
@ -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="([^"]+)"$',
|
||||
|
|
Loading…
Add table
Reference in a new issue