[systemd-devel] multi-user.target -> rescue.target and back to multi-user issues

Felix Miata mrmazda at earthlink.net
Wed Jun 22 20:25:53 UTC 2016


Andrei Borzenkov composed on 2016-06-22 06:39 (UTC+0300):

> TBH, switch between run-time levels never really worked in the past,
> before systemd, so at least there is no regression :)

This is news to me. I was doing this for years. What brokenness was I
not encountering?
 
> Well, getty's are spawned dynamically on demand

Not here. I found the wait for them to appear when booting to
multi-user.target routinely frustrating, so I have a script to run
post-installation that creates e.g.:

/etc/systemd/system/getty.target.wants # ls -gG
total 0
lrwxrwxrwx 1 53 Dec 27 01:54 getty at tty1.service -> ../../../../usr/lib/systemd/system/getty at tty1.service
lrwxrwxrwx 1 38 Dec 26 19:46 .getty at tty1.service.01 -> /usr/lib/systemd/system/getty at .service
lrwxrwxrwx 1 49 Dec 27 01:54 getty at tty2.service -> ../../../../usr/lib/systemd/system/getty at .service
lrwxrwxrwx 1 49 Dec 27 01:54 getty at tty3.service -> ../../../../usr/lib/systemd/system/getty at .service
lrwxrwxrwx 1 49 Dec 27 01:54 getty at tty4.service -> ../../../../usr/lib/systemd/system/getty at .service
lrwxrwxrwx 1 49 Dec 27 01:54 getty at tty5.service -> ../../../../usr/lib/systemd/system/getty at .service
lrwxrwxrwx 1 49 Dec 27 01:54 getty at tty6.service -> ../../../../usr/lib/systemd/system/getty at .service

> ...switching
> between multi-user and graphical would kill them. That's probably not
> what users expect.

+1
 
> Adding Conflicts=rescue.target may help to workaround this specific case
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


More information about the systemd-devel mailing list