2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2019-12-12 19:06:06 +03: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 = Repartition Root Disk
Documentation = man:systemd-repart.service(8)
DefaultDependencies = no
Conflicts = shutdown.target
2022-12-23 19:23:14 +03:00
Wants = modprobe@loop.service modprobe@dm_mod.service
After = initrd-usr-fs.target modprobe@loop.service modprobe@dm_mod.service
2019-12-12 19:06:06 +03:00
Before = initrd-root-fs.target shutdown.target
ConditionVirtualization = !container
2020-04-02 18:04:38 +03:00
ConditionDirectoryNotEmpty = |/usr/lib/repart.d
ConditionDirectoryNotEmpty = |/usr/local/lib/repart.d
ConditionDirectoryNotEmpty = |/etc/repart.d
ConditionDirectoryNotEmpty = |/run/repart.d
2021-04-07 12:22:21 +03:00
ConditionDirectoryNotEmpty = |/sysroot/usr/lib/repart.d
ConditionDirectoryNotEmpty = |/sysroot/usr/local/lib/repart.d
ConditionDirectoryNotEmpty = |/sysroot/etc/repart.d
ConditionDirectoryNotEmpty = |/sysusr/usr/lib/repart.d
ConditionDirectoryNotEmpty = |/sysusr/usr/local/lib/repart.d
2019-12-12 19:06:06 +03:00
[Service]
Type = oneshot
RemainAfterExit = yes
2021-05-16 12:55:36 +03:00
ExecStart = {{ROOTBINDIR}}/systemd-repart --dry-run=no
2019-12-12 19:06:06 +03:00
2020-03-13 20:33:44 +03:00
# The tool returns 77 if there's no existing GPT partition table
2019-12-12 19:06:06 +03:00
SuccessExitStatus = 77