From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 12 Dec 2025 15:55:09 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vU4Y1-00AhiC-0c for lore@lore.pengutronix.de; Fri, 12 Dec 2025 15:55:09 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vU4Y1-0007hI-21; Fri, 12 Dec 2025 15:55:09 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vU4VG-0004Ab-Or; Fri, 12 Dec 2025 15:52:18 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vU4VG-005JLC-1b; Fri, 12 Dec 2025 15:52:18 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1vU4VG-0000000CjKS-1rau; Fri, 12 Dec 2025 15:52:18 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 12 Dec 2025 15:52:18 +0100 Message-ID: <20251212145218.3034173-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251211100718.1261055-2-ada@thorsis.com> References: <20251211100718.1261055-2-ada@thorsis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] rootfs: Add option to create /var/www X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 8e87fca5ae8b36dc5430d16576ae2fb68ac93a32. Michael [sent from post-receive hook] On Fri, 12 Dec 2025 15:52:18 +0100, Alexander Dahl wrote: > 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 > Message-Id: <20251211100718.1261055-2-ada@thorsis.com> > Signed-off-by: Michael Olbrich > > diff --git a/rules/rootfs.in b/rules/rootfs.in > index 2b7c50363df0..93b53481d121 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 1c1e5501cf83..656fbe4ba5a7 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