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