vmdebootstrap *requires* a cdroot and a mirror

This commit is contained in:
Iain R. Learmonth 2016-11-17 19:39:05 +00:00
parent 4258e63357
commit b9d6b77bf9

View file

@ -30,12 +30,8 @@ from vmdebootstrap.base import runcmd
class VMDebootstrap(object):
def __init__(self, distribution, architecture, mirror=None, cdroot='/tmp/'):
def __init__(self, distribution, architecture, mirror, cdroot):
self.cdroot = cdroot
# FIXME: The customise script needs to be specified in the command line
# arguments, falling back to /usr/share/vmdebootstrap/hooks/customise.sh
# if no script is specified and hooks/customise.sh does not exist in
# the current directory.
self.args = ["vmdebootstrap",
"--sudo", "--lock-root-password",
"--no-systemd-networkd",