1SYSTEMD-MAKEFS@.SERVICE(8) systemd-makefs@.service SYSTEMD-MAKEFS@.SERVICE(8)
2
3
4
6 systemd-makefs@.service, systemd-mkswap@.service, systemd-
7 growfs@.service, systemd-growfs-root.service, systemd-makefs, systemd-
8 growfs - Creating and growing file systems on demand
9
11 systemd-makefs@device.service
12
13 systemd-mkswap@device.service
14
15 systemd-growfs@mountpoint.service
16
17 systemd-growfs-root.service
18
19 /usr/lib/systemd/systemd-makefs
20
21 /usr/lib/systemd/systemd-growfs
22
24 systemd-makefs@.service, systemd-mkswap@.service,
25 systemd-growfs@.service, and systemd-growfs-root.service are used to
26 implement the x-systemd.makefs and x-systemd.growfs options in
27 fstab(5), see systemd.mount(5). They are instantiated for each device
28 for which the file system or swap structure needs to be initialized,
29 and for each mount point where the file system needs to be grown.
30
31 These services are started at boot, either right before or right after
32 the mount point or swap device are used.
33
34 systemd-makefs knows very little about specific file systems and swap
35 devices, and after checking that the block device does not already
36 contain a file system or other content, it will execute binaries
37 specific to each filesystem type (/sbin/mkfs.type or /sbin/mkswap). For
38 certain file system types (currently ext2/ext3/ext4(5), btrfs(5),
39 xfs(5), f2fs, vfat) and for swap devices, it will configure reasonable
40 defaults and set the file system label and UUID based on the device
41 name.
42
43 systemd-growfs knows very little about specific file systems and swap
44 devices, and will instruct the kernel to grow the mounted filesystem to
45 full size of the underlying block device. Nevertheless, it needs to
46 know the ioctl(2) number specific to each file system, so only certain
47 types are supported. Currently: ext4(5), btrfs(5), xfs(5), and dm-crypt
48 partitions (see cryptsetup(8)).
49
50 If the creation of a file system or swap device fails, the mount point
51 or swap is failed too. If the growing of a file system fails, a warning
52 is emitted.
53
55 systemd(1), systemd.mount(8), systemd-fstab-generator(8), systemd-
56 repart(8), mkfs.btrfs(8), mkfs.cramfs(8), mkfs.ext4(8), mkfs.fat(8),
57 mkfs.hfsplus(8), mkfs.minix(8), mkfs.ntfs(8), mkfs.xfs(8)
58
59
60
61systemd 253 SYSTEMD-MAKEFS@.SERVICE(8)