← Back to team overview

curtin-dev team mailing list archive

Re: [Merge] ~ogayot/curtin:curthooks-fix-apt-config-translation into curtin:master

 


Diff comments:

> diff --git a/curtin/commands/apt_config.py b/curtin/commands/apt_config.py
> index f9cce34..e02327a 100644
> --- a/curtin/commands/apt_config.py
> +++ b/curtin/commands/apt_config.py
> @@ -714,6 +713,7 @@ def translate_old_apt_features(cfg):
>              raise ValueError(msg)
>  
>          old = cfg.get('apt_mirrors')
> +        cfg.setdefault('apt', {})

Works for me, thanks!

>          cfg['apt']['primary'] = [{"arches": ["default"],
>                                    "uri": old.get('ubuntu_archive')}]
>          cfg['apt']['security'] = [{"arches": ["default"],


-- 
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/437494
Your team curtin developers is subscribed to branch curtin:master.



References