systemd-makefs@.service, systemd-mkswap@.service, and
systemd-growfs@.service are used to implement the x-systemd.makefs
and x-systemd.growfs options in fstab(5), see systemd.mount(5). They
are instantiated for each device for which the file system or swap
structure needs to be initialized, and for each mount point where the
file system needs to be grown.
These services are started at boot, either right before or right
after the mount point or swap device are used.
systemd-makefs knows very little about specific file systems and swap
devices, and after checking that the block device does not already
contain a file system or other content, it will execute binaries
specific to each filesystem type (/sbin/mkfs.type or /sbin/mkswap).
systemd-growfs knows very little about specific file systems and swap
devices, and will instruct the kernel to grow the mounted filesystem
to full size of the underlying block device. Nevertheless, it needs
to know the ioctl(2) number specific to each file system, so only
certain types are supported. Currently: ext4(5), btrfs(5), xfs(5),
and dm-crypt partitions (see cryptsetup(8)).
If the creation of a file system or swap device fails, the mount
point or swap is failed too. If the growing of a file system fails, a
warning is emitted.
This page is part of the systemd (systemd system and service manager)
project. Information about the project can be found at
⟨http://www.freedesktop.org/wiki/Software/systemd⟩. If you have a bug
report for this manual page, see
page was obtained from the project's upstream Git repository
⟨https://github.com/systemd/systemd.git⟩ on 2020-07-14. (At that
time, the date of the most recent commit that was found in the repos‐
itory was 2020-07-14.) If you discover any rendering problems in
this HTML version of the page, or you believe there is a better or
more up-to-date source for the page, or you have corrections or
improvements to the information in this COLOPHON (which is not part
of the original manual page), send a mail to firstname.lastname@example.org
systemd 246 SYSTEMD-MAKEFS@.SERVICE(8)