From a5b432ee67b11259034165a0240cde731a0b7f93 Mon Sep 17 00:00:00 2001 From: wanglei Date: Wed, 18 Dec 2024 11:39:10 +0800 Subject: [PATCH] Support the use of private registry with Luet --- bundles/bundles.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/bundles.go b/bundles/bundles.go index 356cc5a0..3afdfddb 100644 --- a/bundles/bundles.go +++ b/bundles/bundles.go @@ -284,11 +284,13 @@ func (l *LuetInstaller) Install(config *BundleConfig) error { } out, err := utils.SH( fmt.Sprintf( - `LUET_CONFIG_FROM_HOST=false luet repo add --system-dbpath %s --system-target %s kairos-system -y --description "Automatically generated kairos-system" --url "%s" --type "%s"`, + `LUET_CONFIG_FROM_HOST=false luet repo add --system-dbpath %s --system-target %s kairos-system -y --description "Automatically generated kairos-system" --url "%s" --type "%s" --username "%s" --passwd "%s"`, config.DBPath, config.RootPath, repo, t, + config.Auth.Username, + config.Auth.Password, ), ) if err != nil {