Your message dated Wed, 04 Oct 2023 22:36:07 +0000
with message-id <[email protected]>
and subject line Bug#1039248: fixed in kexec-tools 1:2.0.27-1
has caused the Debian Bug report #1039248,
regarding systemd-sysv: reboot doesn't honor the grub-reboot settings; reboot 
-f does
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1039248: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039248
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd-sysv
Version: 252.6-1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I was updating the gce-xfstests[1] test appliance to Debian Bookworm from
Debian Bullseye.

[1] https://thunk.org/gce-xfstests

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Unfortunately kexec has not been reliable ever since sometime after the
5.4 kernel, at least on Google Compute Engine VM's.  (About 30-40% of
the time, the VM hangs after the kexec; about 10% of the time, the
machine is up, but it is very slow and limping, and /proc/interrupts
shows that some interrupt channel is going wild.  This is no doubt the
kernel bug interacting with some virtual hardware in the GCE VM, but
I've never been able to debug it.)

Because of issues with kexec, the primary way that I reboot into the
kernel that I want to test is to install the kernel as a dpkg package,
and then examine /boot/grub/grub.cfg to find out where it was inserted
into the grub's menu listing, and then run a command like "grub-reboot
1>4", where the number is found by examing the grub.cfg file.  An
example of this works can be found here[2].

[2] 
https://github.com/tytso/xfstests-bld/blob/9bae3253d57456987d995cf85379e9165e054381/test-appliance/files/usr/local/lib/gce-load-kernel#L169

This works *just* *fine* when using Debian Bullseye (which is using
systemd 247.3-7+deb11u2).

   * What was the outcome of this action?

Unfortunately, this no longer works in Debian Bookworm (with systemd
252.6-1).  In Debian Bookworm, the grub-reboot(8) setting is ignored
after triggering a reboot via /sbin/reboot.

Connecting to the serial console, it appears that "reboot" is going
through some code path that does NOT involve triggering a BIOS message
and going through grub, where (assuming the GRUB_TIMEOUT is set to some
non-zero value like 15) the grub menu would be displayed, and after 15
seconds, it would boot the kernel specified by grub-reboot, and then
clear the next_entry entry in /boot/grub/grubenv.

Instead, systemd appears to boot the default kernel, ignoring
/boot/grub/grubenv, so I don't enter the kernel which I had just
installed, and had selected via the grub-reboot(8) command.  Looking at
/boot/grub/grubenv, it still has the "next_entry=1>4" set by
grub-reboot(8), so it appears that /boot/grub/grubenv is being
completely ignored by reboot.

*However*, it is properly handled if I use reboot -f.  The "reboot -f"
command will briefly show the BIOS version information, and then the
Grub Menu, and then will boot the kernel selected by grub-reboot(8), and
afterwords the next_entry field is cleared from /boot/grub/grubenv.  So
this is not a "grub" problem, but in the reboot path selected by systemd
when doing a clean shutdown via the "reboot" command.   As near as I can
tell, grub is being bypassed, or at least grub is getting called in some
way whic causes it to ignore the /boog/grub/grubenv parameter.

In Debian Bookworm, "reboot" works like "reboot -f", in that we go
through the BIOS initialization step, printing the BIOS version, and
then grub is invoked in such a way that /boot/grub/grubenv is honored.

   * What outcome did you expect instead?

The "reboot" command should go through the normal, full reboot sequence,
such that grub-reboot(8) works correctly.  As a workaround, I've
replaced

   reboot
   sleep 60

with

   sync /boot
   sync
   sleep 1
   reboot -f
   sleep 60

However, it would be desirable to let the system go through a full,
clean shutdown, with file systems properly unmounted or remounted
read-only in the case of the root file system.


-- System Information:
Debian Release: 12.0
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/20 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd-sysv depends on:
ii  systemd  252.6-1

Versions of packages systemd-sysv recommends:
ii  libnss-systemd  252.6-1
ii  libpam-systemd  252.6-1

systemd-sysv suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: kexec-tools
Source-Version: 1:2.0.27-1
Done: Khalid Aziz <[email protected]>

We believe that the bug you reported is fixed in the latest version of
kexec-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Khalid Aziz <[email protected]> (supplier of updated kexec-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 04 Oct 2023 16:17:28 -0600
Source: kexec-tools
Architecture: source
Version: 1:2.0.27-1
Distribution: unstable
Urgency: medium
Maintainer: Khalid Aziz <[email protected]>
Changed-By: Khalid Aziz <[email protected]>
Closes: 1028416 1030248 1032000 1034616 1039248 1051962
Changes:
 kexec-tools (1:2.0.27-1) unstable; urgency=medium
 .
   * New upstream release (Closes: #1051962)
   * Updated turkish translation (Closes: #1034616)
   * Added romanian translation (Closes: #1032000)
   * Make "kexec -a" the default. This fix was pulled into upstream
     2.0.26 release (Closes: #1030248)
   * Removed trailing whitespaves from rules and changelog files
   * Updated version for watch file and replaced http with https
   * Updated control file, cleaned up rules file, made copyright file
     dep5 compliant
   * Removed init files. Removed automatic kexec reboot when enabled
     and associated config option (kexec-tools/load_kexec or
     LOAD_KEXEC in /etc/default/kexec). kexec reboot functionality
     has been integrated into systemctl now and will likely move to
     logind in near future. (Closes: #1039248)
   * Package now provides a script - kexec-load-kernel. To perform a
     kexec reboot, ensure /etc/default/kexec has the desired value for
     USE_GRUB_CONFIG. Use the sequence "kexec-load-kernel;
     systemctl kexec" or "kexec-load-kernel; reboot"
     (Closes: #1028416)
Checksums-Sha1:
 56e50779d23ba4b081857693dcbc66d0c8ba9c92 1997 kexec-tools_2.0.27-1.dsc
 ed15f191adee22ab0721ba62af1cae67eb981670 308540 kexec-tools_2.0.27.orig.tar.xz
 63887b052566afe636df387e985f817ef96ce0f2 26012 
kexec-tools_2.0.27-1.debian.tar.xz
 026d2f6771844a459a23d5853180b43113184823 6422 
kexec-tools_2.0.27-1_source.buildinfo
Checksums-Sha256:
 6ad08199fc383fc6a5de2e9c481c0dcf794e784196f954d3fb5403aee4316ee5 1997 
kexec-tools_2.0.27-1.dsc
 38d78bcfa33a88928324b57dc81f50c1dfc279eede45e80957ca18f4e84b8187 308540 
kexec-tools_2.0.27.orig.tar.xz
 641d8c1c2265010507ace885f136b6f8ff6328372a5a3c2d4d99181cf5b3fa7f 26012 
kexec-tools_2.0.27-1.debian.tar.xz
 1827a7e72f2306e6c9f0a6dc316632144470cdadf5045eb4f15805fe298b9ac3 6422 
kexec-tools_2.0.27-1_source.buildinfo
Files:
 e2d7844967362dbe10727487add4b3d2 1997 admin optional kexec-tools_2.0.27-1.dsc
 70472060cdcbfdb0de6ae651193fbc7d 308540 admin optional 
kexec-tools_2.0.27.orig.tar.xz
 632f50ac57ff794bbeabbeea85eb90d6 26012 admin optional 
kexec-tools_2.0.27-1.debian.tar.xz
 b145a3f8d4e703cf52f12b5fcd439ada 6422 admin optional 
kexec-tools_2.0.27-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEELNgYv/ZGGerbWCE0zVihsX7QM/oFAmUd5LAACgkQzVihsX7Q
M/qijxAAmGv6C/NhDxBi4ZpgRyJb6UL0/9rilDg4P5gsL4LtMZhNCYUwSdT5/wxF
sLD5tsNWh8RaPOikm+l0UV8rgnBFMNP3eJHF0t3ACSfAAgX6fo08lDtWM19bfzke
4/WCX3AJi5ZoEuqaOu0mlkQW+ji2h4OraitLmPCW8Uu1+TgpoWtVtSVAiN86Z1qX
+mpWRQKYTVxzanUsPicIC00qmQUpVEyYBJNEM/w82tziM5eoolPbG//de5SA4DiQ
KmITiqSjbJfrGFB8HPafqqdp/hRv8GIWZoFX0fie578+dDkAYF3mBy91Ii/KUeJn
Eu4d1CMk3WkZy0pFYtj4GhdPaeu3KyViRsyCuA3s3XMU7X04TgbNs4tbLDFQzbG7
hF9qlWKCXuaj/23SBH8Jw6r+2x+2zoVBadm4nNIIodcAWP8awLnDqn1YI4G/fgEp
qKNdXivibIvH/WGCQRgUf6/pfbzD7WZh9BN8/wNoTCBdZXCIsIq1+jja8oflnBzt
r+RG7m4PiejWxGq68QguWc4JDC4giM/D639qH6uZt2cFfUYCH77SDHG+m13YU/dk
9NuBBOexowV9dF2woC9WTSxgI+ogNBMvELKKmXodQkLDQBRPSVH/js+ujLaeV9c0
tdTVoXMaB1Qoqoe/mkZHkCfZlb7/91Wh5x8aHpN8yn4kN1YJGd4=
=qTKJ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to