Skip to contentSkip to conversation

systemd: fix wrong path of tmp.mount

PATCH Changqing Li 1 participant 1 message Jun 12, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

ping

Quoted 37 lines · Changqing Li

From: Changqing Li<[email protected]>

According to meson.build, tmp.mount is installed under "prefixdir/'lib/systemd/system'", but for 64bit system, rootlibdir is /usr/lib64/systemd/system, this make tmp.mount not removed, and /tmp still mounted as tmpfs filesystem. Fixed by using rootlibexecdir, which is /usr/lib/systemd/system.

---
  meta/recipes-core/systemd/systemd_255.6.bb | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/systemd/systemd_255.6.bb +2 -3
index 62842d43c8..15b631fc07 100644
@@ -320,8 +320,8 @@ do_install() {
  	# if the user requests /tmp be on persistent storage (i.e. not volatile)
  	# then don't use a tmpfs for /tmp
  	if [ "${VOLATILE_TMP_DIR}" != "yes" ]; then
-		rm -f ${D}${rootlibdir}/systemd/system/tmp.mount
-		rm -f ${D}${rootlibdir}/systemd/system/local-fs.target.wants/tmp.mount
+		rm -f ${D}${rootlibexecdir}/systemd/system/tmp.mount
+		rm -f ${D}${rootlibexecdir}/systemd/system/local-fs.target.wants/tmp.mount
  	fi
 
  	install -d ${D}${systemd_system_unitdir}/graphical.target.wants
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#200014):https://lists.openembedded.org/g/openembedded-core/message/200014 Mute This Topic:https://lists.openembedded.org/mt/106385193/3616873
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-