mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: make a directory for v, q, and Q entries
Files from distributions use v, q, and Q for directories that should
be btrfs subvolumes when that is possible:
v /var/lib/machines 0700 - - -
tmpfiles skipped them as unsupported, so the directory was missing.
On a file system without subvolumes tmpfiles.d(5) has them make a
plain directory. Do that everywhere, read them as d.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+23
-12
No files matched your search
@@ -884,6 +884,10 @@ static void tmpfiles(char *line)
|
||||
if (boot && !boot_flag)
|
||||
return;
|
||||
|
||||
/* No btrfs subvolumes, a plain directory as tmpfiles.d(5) has for other file systems */
|
||||
if (strchr("vqQ", type[0]))
|
||||
type[0] = 'd';
|
||||
|
||||
path = strtok(NULL, "\t ");
|
||||
if (!path)
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user