2017-05-27 18:09:50 +00:00
|
|
|
[Unit]
|
2022-03-15 19:15:21 +00:00
|
|
|
Description=Root Filesystem Auto-Expander
|
2022-08-08 00:29:24 +00:00
|
|
|
DefaultDependencies=no
|
2022-08-09 02:46:36 +00:00
|
|
|
# 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
|
2022-08-08 00:29:24 +00:00
|
|
|
After=systemd-remount-fs.service
|
2022-08-08 23:24:23 +00:00
|
|
|
# 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:
|
2022-08-08 00:29:24 +00:00
|
|
|
Before=dphys-swapfile.service
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=TERM=linux
|
|
|
|
Type=oneshot
|
2022-03-15 15:15:22 +00:00
|
|
|
ExecStart=/usr/sbin/iiab-expand-rootfs
|
2022-08-08 23:52:51 +00:00
|
|
|
# 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:
|
2022-08-08 22:18:53 +00:00
|
|
|
TimeoutSec=infinity
|
2022-03-15 22:30:19 +00:00
|
|
|
# "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=
|
2022-08-08 00:29:24 +00:00
|
|
|
RemainAfterExit=yes
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
[Install]
|
2022-08-08 00:29:24 +00:00
|
|
|
WantedBy=local-fs.target
|