From: Michael Tremer Date: Thu, 6 Feb 2025 18:30:09 +0000 (+0000) Subject: pakfire: Require a flag to turn on using tmpfs X-Git-Tag: 0.9.30~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0627241d8a2db5227b6b79c86058b12299faaf09;p=pakfire.git pakfire: Require a flag to turn on using tmpfs Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/pakfire.c b/src/pakfire/pakfire.c index c58f9241..046e23ce 100644 --- a/src/pakfire/pakfire.c +++ b/src/pakfire/pakfire.c @@ -284,7 +284,7 @@ static int pakfire_setup_path(struct pakfire* self, const char* path) { } // Mount a tmpfs - } else { + } else if (pakfire_has_flag(self, PAKFIRE_USE_TMPFS)) { r = mount("pakfire_root", path, "tmpfs", 0, NULL); if (r) { ERROR(self->ctx, "Could not mount tmpfs: %m\n"); diff --git a/src/pakfire/pakfire.h b/src/pakfire/pakfire.h index 557393c9..b23ab4b6 100644 --- a/src/pakfire/pakfire.h +++ b/src/pakfire/pakfire.h @@ -49,7 +49,8 @@ enum pakfire_flags { PAKFIRE_FLAGS_STUB = (1 << 0), PAKFIRE_FLAGS_BUILD = (1 << 1), PAKFIRE_FLAGS_BUILD_LOCAL = (1 << 2), - PAKFIRE_USE_SNAPSHOT = (1 << 3), + PAKFIRE_USE_TMPFS = (1 << 3), + PAKFIRE_USE_SNAPSHOT = (1 << 4), }; // Callbacks