diff options
author | Roland Hieber <rhi@pengutronix.de> | 2023-11-03 23:52:49 +0100 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2023-12-13 17:08:55 +0100 |
commit | e15264c96c4fa2c7299f8bb2721bc6973fbaf7fe (patch) | |
tree | 6e3f64a273493ee92ad02fb93826b9b773fcb055 /rules | |
parent | ec4e919d7f81fc57f1f524a7b89f21066524191d (diff) | |
download | DistroKit-e15264c96c4fa2c7299f8bb2721bc6973fbaf7fe.tar.gz DistroKit-e15264c96c4fa2c7299f8bb2721bc6973fbaf7fe.tar.xz |
datapartition: add missing mount unit
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 <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20231103225253.1349209-7-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/datapartition.make | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/datapartition.make b/rules/datapartition.make index 8084480..28ab717 100644 --- a/rules/datapartition.make +++ b/rules/datapartition.make @@ -27,6 +27,10 @@ $(STATEDIR)/datapartition.targetinstall: @$(call install_fixup,datapartition,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") @$(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, \ |