Bug#981748: systemd-boot cmdline single

2021-02-03 Thread Marco Schmidt
Hello,

A short discussion on the issue came to the result, that this is not a bug.

It is a matter of configuration, which is up to the administrator of the 
computer.

Like with grub, where the kernel parameters are configured in 
/etc/default/grub, in systemd-boot this is (or has to be)
configured in /etc/kernel/cmdline.

It might be worth thinking of creating the file /etc/kernel/cmdline during 
package install.

This would make it more similar to grub.

I assume systemd-boot is not at the end of development and maybe in future 
releases there will be an extended framework
on configuring the boot behavior.

We can close this.

Thanks again.

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 -



Bug#981748: systemd-boot cmdline single

2021-02-03 Thread Michael Biebl

Control: forwarded -1 https://github.com/systemd/systemd/issues/18456

Am 03.02.2021 um 17:51 schrieb Marco Schmidt:

https://github.com/systemd/systemd/issues/18456


Thanks a lot. Marking as forwarded accordingly.


Regards,
Michael




OpenPGP_signature
Description: OpenPGP digital signature


Bug#981748: systemd-boot cmdline single

2021-02-03 Thread Marco Schmidt
Hello,

thanks for the note.
You are perfectly right!
Sorry for using the wrong channel.

https://github.com/systemd/systemd/issues/18456

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 -



Bug#981748: systemd-boot cmdline single

2021-02-03 Thread Michael Biebl

Control: severity -1 minor
Control: tags -1 + upstream

Hello

Am 03.02.21 um 15:34 schrieb Marco Schmidt:

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".



Since this script comes from upstream unmodified, can you please raise 
this issue at https://github.com/systemd/systemd/issues/new


Thanks,
Michael



OpenPGP_signature
Description: OpenPGP digital signature


Bug#981748: systemd-boot cmdline single

2021-02-03 Thread Marco Schmidt
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 -