diff --git a/script/gs_preinstall b/script/gs_preinstall index 02249255ecd19a9bdb904866310186eb6c86b608..655c66e8f8e472a4234a2ef2fdb0a8326b07cfd4 100644 --- a/script/gs_preinstall +++ b/script/gs_preinstall @@ -97,6 +97,7 @@ General options: --skip-hostname-set Whether to skip hostname setting. (The default value is set.) -l Path of log file. + --delete-root-trust Delete the mutual trust -?, --help Show help information for this utility, and exit the command line mode. -V, --version Show version information. diff --git a/script/impl/preinstall/PreinstallImpl.py b/script/impl/preinstall/PreinstallImpl.py index 145f4a7b79b6cdf63353db9c29f1578f80cf540d..cd1c0bcbc3c4f4e71c961b093d8941161d93616c 100644 --- a/script/impl/preinstall/PreinstallImpl.py +++ b/script/impl/preinstall/PreinstallImpl.py @@ -1579,7 +1579,8 @@ class PreinstallImpl: # indicate that the preinstall.py has been execed succeed self.doPreInstallSucceed() # delete root mutual trust - self.delete_root_mutual_trust() + if self.context.root_delete_flag == True: + self.delete_root_mutual_trust() self.context.logger.log("Preinstallation succeeded.")