Bug#981748: systemd-boot cmdline single

Marco Schmidt marco.schmidt at fgcz.ethz.ch
Wed Feb 3 14:34:41 GMT 2021


Package: systemd
Version: all

Hello,

I think that the script "src/kernel-install/90-loaderentry.install" does not handle the special case if booted with
option "single".

Consider the following situation:

On bootup in the systemd-boot menu, edit the line and change "quiet" to "single", to get into the recovery (aka single
user mode).
In recovery you just say "exit" or press ctrl-D. This will boot the system in normal mode (usually multi-user).

BUT, in "/proc/cmdline" there is still the option "single" at the end of the line.

Now install a kernel update or do "update-initramfs", which will update the "systemd-boot" loader-entries by running the
kernel-install scripts including "90-loaderentry.install".
The updated loader-entry will have the entry "single" under "options".
On next reboot, the system will again go to recovery.
At the end, you will never get rid of the option "single".

The only way out is to create "/etc/kernel/cmdline" without the "single" in the line.

I saw this in Debian 10 (buster), but did not see a change in the source of newer versions.

Many thanks for reading this and thinking about it.
I really appreciate the work of Debian and the Debian package maintainers!

Greetings ...
 Marco

-- 
UZH/ETH Zurich, Marco Schmidt, Functional Genomics Center Zurich
Y32 H06, Winterthurerstr. 190, 8057 Zurich
Tel +41 44 635 39 02, Fax +41 44 635 39 22, https://www.fgcz.ch/
- IT Coordinator -



More information about the Pkg-systemd-maintainers mailing list