diff --git a/orbit/CHANGELOG.md b/orbit/CHANGELOG.md index e14eece205..5b8facf915 100644 --- a/orbit/CHANGELOG.md +++ b/orbit/CHANGELOG.md @@ -1,10 +1,7 @@ -## Orbit 1.47.1 (Sep 03, 2025) +## Orbit 1.47.2 (Sep 04, 2025) * Fixed bug where "Self-service" was still shown in Fleet Desktop menu when the host was offline. -* Orbit now sets `DEBIAN_FRONTEND=noninteractive` by default when installing Debian packages. This prevents package installation from hanging for debconf questions. Administrators may override this in install scripts if desired. - * Note that installs can still hang when a configuration file differs from the version originally installed by the package. You'll need to include `--force-confdef` (or `confnew` or `confold`) in the `dpkg` command (wrap with `-o Dpkg::Options='...'` if installing using `apt`) to prevent dpkg from hanging in these cases. - * Added automatic host identity certificate renewal for TPM-backed certificates. When a certificate is within 180 days of expiration, orbit will automatically renew it using proof-of-possession with the existing certificate's private key. * Updated go to 1.24.6 diff --git a/orbit/pkg/installer/installer.go b/orbit/pkg/installer/installer.go index 892d41fbc5..e7517f98c7 100644 --- a/orbit/pkg/installer/installer.go +++ b/orbit/pkg/installer/installer.go @@ -322,7 +322,7 @@ func (r *Runner) installSoftware(ctx context.Context, installID string, logger z if strings.HasSuffix(installerPath, ".tgz") || strings.HasSuffix(installerPath, ".tar.gz") { logger.Info().Msg("detected tar.gz archive, extracting to subdirectory") extractDestination := filepath.Join(tmpDir, extractionDirectoryName) - err := os.Mkdir(extractDestination, 0o700) + err := os.Mkdir(extractDestination, 0700) if err != nil { logger.Err(err).Msg("failed to create directory for .tar.gz extraction") // Using download failed exit code here to indicate that installer extraction failed @@ -424,12 +424,6 @@ func (r *Runner) runInstallerScript(ctx context.Context, scriptContents string, env := os.Environ() installerPathEnv := fmt.Sprintf("INSTALLER_PATH=%s", installerPath) env = append(env, installerPathEnv) - if strings.HasSuffix(installerPath, ".deb") { - // On Debian and Ubuntu systems, packages sometimes ask the user questions - // during installation. This will cause package installation to hang - // indefinitely. Setting this envvar prevents that. - env = append(env, "DEBIAN_FRONTEND=noninteractive") - } output, exitCode, err := execFn(ctx, scriptPath, env) if err != nil {