From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: [ptxdist] [PATCH 1/3] rootfs: Add option to create /var/www
Date: Thu, 11 Dec 2025 11:07:16 +0100 [thread overview]
Message-ID: <20251211100718.1261055-2-ada@thorsis.com> (raw)
In-Reply-To: <20251211100718.1261055-1-ada@thorsis.com>
Multiple packages like nginx, lighttpd, and jvisu are installing things
to /var/www already, and create that path implicitly. Make it explicit.
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
rules/rootfs.in | 9 +++++++++
rules/rootfs.make | 3 +++
2 files changed, 12 insertions(+)
diff --git a/rules/rootfs.in b/rules/rootfs.in
index 2b7c50363..93b53481d 100644
--- a/rules/rootfs.in
+++ b/rules/rootfs.in
@@ -256,6 +256,15 @@ config ROOTFS_VAR_TMP
system reboots. Say 'y' here to ensure a '/var/tmp' directory is
available at run-time.
+config ROOTFS_VAR_WWW
+ bool
+ prompt "/var/www"
+ help
+ This directory is intended for webserver application data.
+ Usually things like html or javascript files go here.
+ Say 'y' here to ensure a '/var/www' directory is available at
+ run-time.
+
endmenu
endif # ROOTFS
diff --git a/rules/rootfs.make b/rules/rootfs.make
index 1c1e5501c..656fbe4ba 100644
--- a/rules/rootfs.make
+++ b/rules/rootfs.make
@@ -145,6 +145,9 @@ ifdef PTXCONF_ROOTFS_VAR_OVERLAYFS
@$(call install_link, rootfs, ../var.mount, \
/usr/lib/systemd/system/local-fs.target.requires/var.mount)
endif
+ifdef PTXCONF_ROOTFS_VAR_WWW
+ @$(call install_copy, rootfs, 0, 0, 0755, /var/www)
+endif
# #
# # install files in rootfs
--
2.47.3
next prev parent reply other threads:[~2025-12-11 10:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 10:07 [ptxdist] [PATCH 0/3] rootfs: Create /var/www and allow webservers to depend on it Alexander Dahl via ptxdist
2025-12-11 10:07 ` Alexander Dahl via ptxdist [this message]
2025-12-12 14:52 ` [ptxdist] [APPLIED] rootfs: Add option to create /var/www Michael Olbrich
2025-12-11 10:07 ` [ptxdist] [PATCH 2/3] nginx: Select rootfs /var/www dependency Alexander Dahl via ptxdist
2025-12-12 14:52 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-12-11 10:07 ` [ptxdist] [PATCH 3/3] lighttpd: " Alexander Dahl via ptxdist
2025-12-12 14:52 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251211100718.1261055-2-ada@thorsis.com \
--to=ptxdist@pengutronix.de \
--cc=ada@thorsis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox