From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Nov 2023 23:53:07 +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.94.2) (envelope-from ) id 1qz32J-000EP9-U4 for lore@lore.pengutronix.de; Fri, 03 Nov 2023 23:53:07 +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 1qz32G-00005s-HB; Fri, 03 Nov 2023 23:53:04 +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 1qz329-0008K6-Nd; Fri, 03 Nov 2023 23:52:57 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qz329-006QH1-6F; Fri, 03 Nov 2023 23:52:57 +0100 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qz329-005f0u-0H; Fri, 03 Nov 2023 23:52:57 +0100 From: Roland Hieber To: distrokit@pengutronix.de Date: Fri, 3 Nov 2023 23:52:49 +0100 Message-Id: <20231103225253.1349209-7-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231103225253.1349209-1-rhi@pengutronix.de> References: <20231103225253.1349209-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH v2 06/10] datapartition: add missing mount unit X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Roland Hieber Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The data partition has not been mounted since /etc/fstab was removed in commit 5eb165a3722013d2c80d (2016-08-18, "ptxdist: version bump 2016.07.0 -> 2016.08.0"). Create the mount point, and add a systemd mount unit based on the /dev/disk/by-usage/data symlink set up by our custom rauc-udev rule. Signed-off-by: Roland Hieber --- projectroot/usr/lib/systemd/system/mnt-data.mount | 6 ++++++ rules/datapartition.make | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 projectroot/usr/lib/systemd/system/mnt-data.mount diff --git a/projectroot/usr/lib/systemd/system/mnt-data.mount b/projectroot/usr/lib/systemd/system/mnt-data.mount new file mode 100644 index 000000000000..4f418167d95f --- /dev/null +++ b/projectroot/usr/lib/systemd/system/mnt-data.mount @@ -0,0 +1,6 @@ +[Unit] +Description=Mount data partition + +[Mount] +What=/dev/disk/by-usage/data +Where=/mnt/data diff --git a/rules/datapartition.make b/rules/datapartition.make index 808448033eee..28ab7175940a 100644 --- a/rules/datapartition.make +++ b/rules/datapartition.make @@ -27,6 +27,10 @@ $(STATEDIR)/datapartition.targetinstall: @$(call install_fixup,datapartition,AUTHOR,"Robert Schwebel ") @$(call install_fixup,datapartition,DESCRIPTION,missing) + @$(call install_copy, datapartition, 0, 0, 0755, /mnt/data) + @$(call install_alternative, datapartition, 0, 0, 0644, \ + /usr/lib/systemd/system/mnt-data.mount) + @# Note: we only want to call systemd-repart in rc-once, so don't @# install the configs to any path picked up by systemd-repart.service @$(call install_alternative_tree, datapartition, 0, 0, \ -- 2.39.2