2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2013-02-24 16:40:36 +00:00
|
|
|
# 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
|
2022-09-14 11:39:10 +00:00
|
|
|
|
2020-07-29 14:25:59 +00:00
|
|
|
AssertPathExists=/etc/initrd-release
|
2022-09-14 11:39:10 +00:00
|
|
|
|
|
|
|
DefaultDependencies=no
|
2022-09-14 12:00:43 +00:00
|
|
|
Wants=initrd-switch-root.target
|
2022-09-14 11:39:10 +00:00
|
|
|
AllowIsolate=yes
|
2013-02-24 16:40:36 +00:00
|
|
|
OnFailure=emergency.target
|
2013-11-26 00:39:53 +00:00
|
|
|
OnFailureJobMode=replace-irreversibly
|
2013-02-24 16:40:36 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2023-04-28 14:56:39 +00:00
|
|
|
ExecStart=systemctl --no-block switch-root
|