[Unit] Description=Repart preferred data partition DefaultDependencies=no Conflicts=shutdown.target # Only run this if a partition labeled 'BOTTLEROCKET-DATA' does not exist already. ConditionPathIsSymbolicLink=!/dev/disk/by-partlabel/BOTTLEROCKET-DATA # Only run if this boot has never succeeded before ConditionFileNotEmpty=!/etc/has-boot-ever-succeeded # This is the partition GUID for the preferred data partition. Wants=dev-disk-by\x2dpartuuid-5b94e8df\x2d28b8\x2d485c\x2d9d19\x2d362263b5944c.device After=dev-disk-by\x2dpartuuid-5b94e8df\x2d28b8\x2d485c\x2d9d19\x2d362263b5944c.device [Service] Type=oneshot # Label the partition as 'BOTTLEROCKET-DATA' and resize the partition, whether or not it resides on the same disk as /. ExecStart=-/usr/bin/systemd-repart --dry-run=no /dev/disk/by-partuuid/5b94e8df-28b8-485c-9d19-362263b5944c RemainAfterExit=true [Install] WantedBy=local-fs.target