Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Bind flags
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Morales <contact@mauromorales.com>
  • Loading branch information
mauromorales committed Mar 15, 2024
1 parent 922e8db commit 3d57062
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions cmd/build-uki.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func NewBuildUKICmd() *cobra.Command {
c.MarkFlagRequired("keys")
// Mark some flags as mutually exclusive
c.MarkFlagsMutuallyExclusive([]string{"extra-cmdline", "extend-cmdline"}...)
viper.BindPFlags(c.Flags())
return c
}

Expand Down
3 changes: 0 additions & 3 deletions pkg/action/build-uki.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,6 @@ func (b *BuildUKIAction) createConfFiles(sourceDir, cmdline string) error {
b.logger.Infof("Creating the %s.conf file", finalEfiName)

title := viper.GetString("boot-branding")
if title == "" {
title = "Kairos"
}
// You can add entries into the config files, they will be ignored by systemd-boot
// So we store the cmdline in a key cmdline for easy tracking of what was added to the uki cmdline

Expand Down

0 comments on commit 3d57062

Please sign in to comment.