Uki changes for iso/install (#156)

This commit is contained in:
Itxaka
2023-09-22 14:56:26 +02:00
committed by GitHub
parent a1710b8589
commit 5412c76ebb
6 changed files with 187 additions and 166 deletions

View File

@@ -37,7 +37,10 @@ func (m mountOperation) run() error {
l.Warn().Err(err).Msg("checking mount status")
return err
}
if mounted {
// In UKI mode we need to remount things from ephemeral to persistent if persistent exists so we need to skip the check for mount
// only in UKI (/home basically)
if mounted && !internalUtils.IsUKI() {
l.Debug().Msg("Already mounted")
return constants.ErrAlreadyMounted
}