Enable PreserveSystemEssentialData on Upgrade/Uninstall

This commit is contained in:
Ettore Di Giacinto
2020-12-09 21:07:50 +01:00
parent d472dee19b
commit f109bab2b4
2 changed files with 19 additions and 17 deletions

View File

@@ -89,6 +89,7 @@ var uninstallCmd = &cobra.Command{
FullCleanUninstall: fullClean, FullCleanUninstall: fullClean,
CheckConflicts: checkconflicts, CheckConflicts: checkconflicts,
Ask: !yes, Ask: !yes,
PreserveSystemEssentialData: true,
}) })
if LuetCfg.GetSystem().DatabaseEngine == "boltdb" { if LuetCfg.GetSystem().DatabaseEngine == "boltdb" {

View File

@@ -92,6 +92,7 @@ var upgradeCmd = &cobra.Command{
SolverUpgrade: universe, SolverUpgrade: universe,
RemoveUnavailableOnUpgrade: clean, RemoveUnavailableOnUpgrade: clean,
UpgradeNewRevisions: sync, UpgradeNewRevisions: sync,
PreserveSystemEssentialData: true,
Ask: !yes, Ask: !yes,
}) })
inst.Repositories(repos) inst.Repositories(repos)