sts-sponsors team mailing list archive
-
sts-sponsors team
-
Mailing list archive
-
Message #01326
[Bug 1821252] [NEW] systemctl set-default breaks recovery mode
You have been subscribed to a public bug by Eric Desrochers (slashd):
[Impact]
* A recovery mode boot is effectively a normal boot on any system that
has ever had systemctl set-default run on it, i.e., the recovery kernel
parameter does nothing. In particular, ubiquity calls systemctl set-
default as part of the oem-config process, rendering recovery mode
useless on any oem-configured machine.
* This is a regression from previous behavior, where recovery mode
would override a user-set default target.
* This would also restore the intuitive behavior of this package. It is
intended to be run by setting a kernel parameter for a one-time boot,
and should therefore take priority over any other settings (such as
configuring a different default target).
[Test Case]
* Run systemctl set-default multi-user.target
* Use the GRUB menu to try to boot into recovery mode
* Observe that you end up at a TTY, not in recovery mode
[Regression Potential]
* Possible regression if someone set recovery as a default kernel
parameter, then relied on the default systemd target to override it.
This seems like an unlikely use-case.
[Original Description]
Fresh Ubuntu 18.04.2 server install
Try to boot to recovery mode from GRUB. Works correctly.
Use systemctl to set a different default, say systemctl set-default
multi-user.target
Try to boot to recovery mode from GRUB. End up at getty and not the
recovery menu.
Delete /etc/systemd/system/default.target* and recovery mode works
normally again.
I believe this can be fixed by changing normaldir to earlydir in the
generator.
** Affects: friendly-recovery (Ubuntu)
Importance: High
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Affects: friendly-recovery (Ubuntu Xenial)
Importance: High
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Affects: friendly-recovery (Ubuntu Bionic)
Importance: High
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Affects: friendly-recovery (Ubuntu Cosmic)
Importance: High
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Affects: friendly-recovery (Ubuntu Disco)
Importance: High
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Affects: friendly-recovery (Ubuntu Eoan)
Importance: High
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Tags: patch regression-update sts
--
systemctl set-default breaks recovery mode
https://bugs.launchpad.net/bugs/1821252
You received this bug notification because you are a member of STS Sponsors, which is subscribed to the bug report.