Commit f245d30c authored by Julien Muchembled's avatar Julien Muchembled

vm.install-*: workaround for spurious "No network interfaces detected"

parent 4f852484
Pipeline #3096 skipped
...@@ -101,6 +101,10 @@ class BaseRecipe(EnvironMixin): ...@@ -101,6 +101,10 @@ class BaseRecipe(EnvironMixin):
class InstallDebianRecipe(BaseRecipe): class InstallDebianRecipe(BaseRecipe):
preseed = """ preseed = """
# Workaround for spurious "No network interfaces detected"
# See https://bugs.debian.org/842201
fb = false
auto = true auto = true
priority = critical priority = critical
partman/choose_partition = finish partman/choose_partition = finish
...@@ -153,7 +157,7 @@ class InstallDebianRecipe(BaseRecipe): ...@@ -153,7 +157,7 @@ class InstallDebianRecipe(BaseRecipe):
cmdline = {} cmdline = {}
for preseed in self.preseed.splitlines(): for preseed in self.preseed.splitlines():
preseed = preseed.strip() preseed = preseed.strip()
if preseed: if preseed and preseed[0] != '#':
k, v = preseed.split('=', 1) k, v = preseed.split('=', 1)
cmdline[k.strip()] = v.strip() cmdline[k.strip()] = v.strip()
for k, v in options.iteritems(): for k, v in options.iteritems():
......
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