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:
Joachim Wiberg committed 2026-11-20 18:03:33 +01:00
1 parent 7422a6fac7
commit 83f4dceb1b
4 files changed
+23 -12

No files matched your search

+4
View File
@@ -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;