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