Support the use of private registry with Luet

This commit is contained in:
wanglei
2024-12-18 11:39:10 +08:00
committed by Dimitris Karakasilis
parent ce21ef0b01
commit 04c1b55f12

View File

@@ -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 {