rescue: don't pull in sockets

In rescue mode let's not establish all sockets, so that we don't end up
starting a lot of additional services automatically.

Instead of pulling in basic.target we now only pull in sysinit.target
which pulls in local-fs.target and swap.target. That way rescue mode has
all the really basic setup around, but normal services are not started
and not autostarted either.
This commit is contained in:
Lennart Poettering 2012-05-22 16:12:25 +02:00
parent 499fb2152f
commit 49e7f02774
3 changed files with 6 additions and 6 deletions

View File

@ -1446,9 +1446,9 @@ systemd-install-hook:
mkdir -p $(DESTDIR)$(systemunitdir)/sockets.target.wants
ln -sf ../systemd-udev-control.socket $(DESTDIR)$(systemunitdir)/sockets.target.wants/systemd-udev-control.socket
ln -sf ../systemd-udev-kernel.socket $(DESTDIR)$(systemunitdir)/sockets.target.wants/systemd-udev-kernel.socket
mkdir -p $(DESTDIR)$(systemunitdir)/basic.target.wants
ln -sf ../systemd-udev.service $(DESTDIR)$(systemunitdir)/basic.target.wants/systemd-udev.service
ln -sf ../systemd-udev-trigger.service $(DESTDIR)$(systemunitdir)/basic.target.wants/systemd-udev-trigger.service
mkdir -p $(DESTDIR)$(systemunitdir)/sysinit.target.wants
ln -sf ../systemd-udev.service $(DESTDIR)$(systemunitdir)/sysinit.target.wants/systemd-udev.service
ln -sf ../systemd-udev-trigger.service $(DESTDIR)$(systemunitdir)/sysinit.target.wants/systemd-udev-trigger.service
INSTALL_DATA_HOOKS += systemd-install-hook

View File

@ -9,7 +9,7 @@
Description=Rescue Shell
DefaultDependencies=no
Conflicts=shutdown.target
After=basic.target plymouth-start.service
After=sysinit.target plymouth-start.service
Before=shutdown.target
[Service]

View File

@ -8,8 +8,8 @@
[Unit]
Description=Rescue Mode
Documentation=man:systemd.special(7)
Requires=basic.target rescue.service
After=basic.target rescue.service
Requires=sysinit.target rescue.service
After=sysinit.target rescue.service
AllowIsolate=yes
[Install]