[Unit] Description=Root Filesystem Auto-Expander DefaultDependencies=no # 2022-08-08: IIAB's 4 core OS's have 'After=systemd-fsck-root.service' WITHIN # systemd-remount-fs.service, allowing us to avoid #3325 race condition w/ fsck After=systemd-remount-fs.service # 2022-08-08: While dphys-swapfile.service doesn't exist on Ubuntu, Mint # and pure Debian, the following line may still serve a purpose on RasPiOS: Before=dphys-swapfile.service [Service] Environment=TERM=linux Type=oneshot ExecStart=/usr/sbin/iiab-expand-rootfs # 2022-08-08: By default, systemd dangerously kills rootfs expansion after just # 90s (1TB microSD cards take ~8 min to expand). Let's remove the time limit: TimeoutSec=infinity # "Standard output type syslog is obsolete" # StandardError=syslog # WHEREAS StandardError=journal is the default, per https://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardOutput= RemainAfterExit=yes [Install] WantedBy=local-fs.target