Debian Codegraph @

units/systemd-repart.service

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Repartition Root Disk
12 Documentation=man:systemd-repart.service(8)
13
14 ConditionVirtualization=!container
15 ConditionDirectoryNotEmpty=|/usr/lib/repart.d
16 ConditionDirectoryNotEmpty=|/usr/local/lib/repart.d
17 ConditionDirectoryNotEmpty=|/etc/repart.d
18 ConditionDirectoryNotEmpty=|/run/repart.d
19 ConditionDirectoryNotEmpty=|/sysusr/usr/lib/repart.d
20 ConditionDirectoryNotEmpty=|/sysusr/usr/local/lib/repart.d
21
22 DefaultDependencies=no
23 After=initrd-usr-fs.target systemd-tpm2-setup-early.service systemd-tmpfiles-setup-dev.service
24 Before=initrd-root-fs.target factory-reset-now.target
25 Conflicts=shutdown.target initrd-switch-root.target
26 Before=shutdown.target initrd-switch-root.target
27
28 [Service]
29 Type=oneshot
30 RemainAfterExit=yes
31 ExecStart=systemd-repart --dry-run=no
32
33 # The tool returns 76 if it can't find the root block device
34 SuccessExitStatus=76
35 # The tool returns 77 if there's no existing GPT partition table
36 SuccessExitStatus=77