remove source command line line and SubiquityModel argument

nothing has used this value for some considerable time.
This commit is contained in:
Michael Hudson-Doyle 2021-04-12 22:52:56 +12:00
parent 3b60666495
commit 98eb11c3b1
3 changed files with 2 additions and 5 deletions

View File

@ -37,9 +37,6 @@ def make_server_args_parser():
parser.add_argument('--machine-config', metavar='CONFIG',
dest='machine_config',
help="Don't Probe. Use probe data file")
parser.add_argument('--source', default=[], action='append',
dest='sources', metavar='URL',
help='install from url instead of default.')
parser.add_argument('--bootloader',
choices=['none', 'bios', 'prep', 'uefi'],
help='Override style of bootloader to use')

View File

@ -102,7 +102,7 @@ class SubiquityModel:
target = '/target'
def __init__(self, root, sources=()):
def __init__(self, root):
self.root = root
if root != '/':
self.target = root

View File

@ -197,7 +197,7 @@ class SubiquityServer(Application):
root = '/'
if self.opts.dry_run:
root = os.path.abspath('.subiquity')
return SubiquityModel(root, self.opts.sources)
return SubiquityModel(root)
def __init__(self, opts, block_log_dir):
super().__init__(opts)