mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-11-09 02:48:33 +00:00
* Use systemd-growfs instead of resize2fs (#1106) Since systemd 236 systemd has a built-in file system growing mechanism. The mechanism relies on the kernels online file system resize capabilities instead of the external resize2fs utility. Online resizing is supposedly much faster since the kernel takes care of things. This also makes sure that external file systems get resized which previously have not been taken care of. * Drop HA OS specific file system resizing Since we have systemd-growfs in place now we can drop our file system resizing code. * Make sure /dev/disk/by-label/hassos-data is present after resizing Note: systemd will retry mnt-data.mount later, so at least in theory this shouldn't really matter. However, the journal has a lot of churn due to that reordering.
19 lines
347 B
Desktop File
19 lines
347 B
Desktop File
#
|
|
# Extracted from fstab-generator
|
|
#
|
|
|
|
[Unit]
|
|
Description=Grow File System on %f
|
|
Documentation=man:systemd-growfs@.service(8)
|
|
DefaultDependencies=no
|
|
BindsTo=%i.mount
|
|
Conflicts=shutdown.target
|
|
After=%i.mount
|
|
Before=shutdown.target local-fs.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/lib/systemd/systemd-growfs %f
|
|
TimeoutSec=0
|