]> git.ipfire.org Git - thirdparty/systemd.git/commit
Add x-systemd.makefs option for fstab
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 Nov 2017 22:18:05 +0000 (23:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Nov 2017 19:46:30 +0000 (20:46 +0100)
commitda495a0385b4df0ed627153950edbc7f4c9faf57
tree32d6cfee06675d4f0a1fd7660f8f6226dedc1608
parent4191418baf1a8f5b51c216aacdfbccdaec4f7a5c
Add x-systemd.makefs option for fstab

I opted to completely generate a unit for both mount points and swaps. For
swaps, it would be possible to use fixed template unit like systemd-mkswap@.service,
because there's no information passed except the device name. For mount points,
that's not possible because both the device name and file system type need to
be passed. Nevertheless, I expect that options will need to passed to both mkfs
and mkswap, in which case it'll be necessary to create units of both types
anyway.
meson.build
src/fstab-generator/fstab-generator.c
src/shared/generator.c
src/shared/generator.h