Remove the proper interactive-install entry by default (#220)

This commit is contained in:
Itxaka 2024-01-31 20:58:49 +01:00 committed by GitHub
parent 9941c786a3
commit 0897a79c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,7 @@ const (
) )
func UkiDefaultSkipEntries() []string { func UkiDefaultSkipEntries() []string {
return []string{"interactive-install", "manual-install"} return []string{"interactive-install", "install-mode-interactive"}
} }
func GetCloudInitPaths() []string { func GetCloudInitPaths() []string {

View File

@ -139,6 +139,7 @@ func (i *InstallAction) Run() (err error) {
// Remove entries // Remove entries
// Read all confs // Read all confs
i.cfg.Logger.Debugf("Checking for entries to remove")
err = fsutils.WalkDirFs(i.cfg.Fs, filepath.Join(i.spec.Partitions.EFI.MountPoint, "loader/entries/"), func(path string, info os.DirEntry, err error) error { err = fsutils.WalkDirFs(i.cfg.Fs, filepath.Join(i.spec.Partitions.EFI.MountPoint, "loader/entries/"), func(path string, info os.DirEntry, err error) error {
i.cfg.Logger.Debugf("Checking file %s", path) i.cfg.Logger.Debugf("Checking file %s", path)
if info.IsDir() { if info.IsDir() {