mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-29 21:55:25 +03:00
7b40ce553f
Instead use @bindir@ for udevadm and @rootbindir@ for systemctl.
20 lines
610 B
SYSTEMD
20 lines
610 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Switch Root
|
|
DefaultDependencies=no
|
|
ConditionPathExists=/etc/initrd-release
|
|
OnFailure=emergency.target
|
|
AllowIsolate=yes
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# we have to use "--force" here, otherwise systemd would umount /run
|
|
ExecStart=@rootbindir@/systemctl --no-block --force switch-root /sysroot
|
|
KillMode=none
|