@@ -24,7 +24,10 @@ func (c *Config) BuildContainer(ctx context.Context, client gwclient.Client, sOp
2424 baseImg = bi .ToState (sOpt , opts ... )
2525 }
2626
27+ // Those base repos come from distro configuration.
2728 repos := dalec .GetExtraRepos (c .ExtraRepos , "install" )
29+
30+ // These are user specified via spec.
2831 repos = append (repos , spec .GetInstallRepos (targetKey )... )
2932
3033 withRepos := c .RepoMounts (repos , sOpt , opts ... )
@@ -57,8 +60,6 @@ func (c *Config) BuildContainer(ctx context.Context, client gwclient.Client, sOp
5760 opts := append (opts , dalec .ProgressGroup ("Install base image packages" ))
5861 baseImg = baseImg .Run (
5962 dalec .WithConstraints (opts ... ),
60- llb .AddEnv ("DEBIAN_FRONTEND" , "noninteractive" ),
61- dalec .WithMountedAptCache (c .AptCachePrefix , opts ... ),
6263 InstallLocalPkg (basePkg , true , opts ... ),
6364 dalec .WithMountedAptCache (c .AptCachePrefix , opts ... ),
6465 ).Root ()
@@ -69,7 +70,6 @@ func (c *Config) BuildContainer(ctx context.Context, client gwclient.Client, sOp
6970 return baseImg .Run (
7071 dalec .WithConstraints (opts ... ),
7172 withRepos ,
72- llb .AddEnv ("DEBIAN_FRONTEND" , "noninteractive" ),
7373 dalec .WithMountedAptCache (c .AptCachePrefix , opts ... ),
7474 // This file makes dpkg give more verbose output which can be useful when things go awry.
7575 llb .AddMount ("/etc/dpkg/dpkg.cfg.d/99-dalec-debug" , debug , llb .SourcePath ("debug" ), llb .Readonly ),
0 commit comments