[elbe-devel] [PATCH] preseed.cfg: from iso, always install packages from main suite

Manuel Traut manuel.traut at linutronix.de
Thu Nov 23 08:36:06 CET 2017


Hi John,

On Mon, Nov 20, 2017 at 03:07:58PM +0100, John Ogness wrote:
> When installing a root filesytem via network, it is possible that
> packages come from other suites (i.e. jessie-backports). However,
> when the bin-cdrom.iso is created, all installed initvm packages
> are put into the same "main" suite (i.e. jessie).
> 
> Originally, when installing via network, it was correct that
> debootstrap/jessie-backports was specified in the pkgsel preseed.
> But when the same root filesystem is installed via bin-cdrom.iso,
> there is no jessie-backports and instead the desired debootstrap
> package is in jessie.
> 
> When installing from bin-cdrom.iso, strip any non-main suites.
> The desired packages will be in the main suite.
> 
> Signed-off-by: John Ogness <john.ogness at linutronix.de>

thanks! I applied the patch to devel/elbe-3.0 and backported it to
devel/elbe-2.0

> ---
>  elbepack/init/preseed.cfg.mako | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/init/preseed.cfg.mako b/elbepack/init/preseed.cfg.mako
> index e318d867..086ad849 100644
> --- a/elbepack/init/preseed.cfg.mako
> +++ b/elbepack/init/preseed.cfg.mako
> @@ -108,7 +108,11 @@ debathena-transform-lighttpd \
>  elbe-soap elbe-buildenv qemu-elbe-user-static \
>  % for n in pkgs:
>  % if n.tag == "pkg":
> -  ${n.et.text} \
> +%   if prj.has("mirror/primary_host") or not prj.node("mirror/cdrom") or n.et.text.find('/') == -1:
> +${n.et.text} \
> +%   else:
> +${n.et.text[:n.et.text.find('/')]} \
> +%   endif
>  % endif
>  % endfor
>  
> -- 
> 2.14.0
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list