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