diff -Nru needrestart-3.6/debian/changelog needrestart-3.6/debian/changelog --- needrestart-3.6/debian/changelog 2023-01-12 23:08:33.000000000 +1300 +++ needrestart-3.6/debian/changelog 2023-05-29 16:04:30.000000000 +1200 @@ -1,3 +1,13 @@ +needrestart (3.6-3ubuntu0.23.04.1) lunar; urgency=medium + + * Fix VM detection by correcting a spelling mistake, changing + /usr/bin/systemds-detect-virt to /usr/bin/systemd-detect-virt. + This ensures users are not prompted for microcode upgrades inside + VMs. (LP: #2020826) + - lp2020826-Fix-VM-detection-regression-introduced-in-f54d85c.patch + + -- Matthew Ruffell Mon, 29 May 2023 16:04:30 +1200 + needrestart (3.6-3) unstable; urgency=medium * Adjust debian/watch to work again with GitHub. diff -Nru needrestart-3.6/debian/patches/lp2020826-Fix-VM-detection-regression-introduced-in-f54d85c.patch needrestart-3.6/debian/patches/lp2020826-Fix-VM-detection-regression-introduced-in-f54d85c.patch --- needrestart-3.6/debian/patches/lp2020826-Fix-VM-detection-regression-introduced-in-f54d85c.patch 1970-01-01 12:00:00.000000000 +1200 +++ needrestart-3.6/debian/patches/lp2020826-Fix-VM-detection-regression-introduced-in-f54d85c.patch 2023-05-29 16:04:27.000000000 +1200 @@ -0,0 +1,22 @@ +commit 27bf4678bb92f68dfadd04ab04e96cba6ea2c376 +From: zxyrepf <53189615+zxyrepf@users.noreply.github.com> +Date: Sun, 24 Jul 2022 08:30:19 +0000 +Description: Fix VM detection regression introduced in f54d85c +Bug-Ubuntu: https://bugs.launchpad.net/bugs/2020826 +Bug: https://github.com/liske/needrestart/pull/248 +Origin: backport, https://github.com/liske/needrestart/commit/27bf4678bb92f68dfadd04ab04e96cba6ea2c376 +Last-Update: 2023-05-29 + +Index: needrestart-3.6/needrestart +=================================================================== +--- needrestart-3.6.orig/needrestart 2023-05-29 16:04:23.678161817 +1200 ++++ needrestart-3.6/needrestart 2023-05-29 16:04:23.674161821 +1200 +@@ -51,7 +51,7 @@ + my $is_vm; + my $is_container; + +-if($is_systemd && -x q(/usr/bin/systemds-detect-virt)) { ++if($is_systemd && -x q(/usr/bin/systemd-detect-virt)) { + # check if we are inside of a vm + my $ret = system(qw(/usr/bin/systemd-detect-virt --vm --quiet)); + unless($? == -1 || $? & 127) { diff -Nru needrestart-3.6/debian/patches/series needrestart-3.6/debian/patches/series --- needrestart-3.6/debian/patches/series 2023-01-12 23:08:33.000000000 +1300 +++ needrestart-3.6/debian/patches/series 2023-05-29 16:04:21.000000000 +1200 @@ -1,2 +1,3 @@ 01-use-invoke-rc-d.diff 02-bash-term-in-posix-shell.diff +lp2020826-Fix-VM-detection-regression-introduced-in-f54d85c.patch