Skip to contentSkip to conversation

Fix mount options passed to systemd unit

PATCH Applied Uladzimir Bely 3 participants 5 messages Oct 12, 2022 – Oct 18, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix mount options passed to systemd unit

Mount unit template used wrong variable name for mount options. This resulted in empty Options value used for /tmp mounting.

---
 recipes-core/tmp-fs/files/tmp.mount.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/tmp-fs/files/tmp.mount.tmpl +1 -1
index fcb2f3e..be5e663 100644
@@ -5,7 +5,7 @@ Description=Create /tmp
 What=tmpfs
 Where=/tmp
 Type=tmpfs
-Options=${TMP_OPTIONS}
+Options=${TMP_FS_OPTIONS}
 
 [Install]
 WantedBy=local-fs.target
Signature · 1 line
2.20.1
Applied
#1 lore raw
Quoted 13 lines · Uladzimir Bely

Mount unit template used wrong variable name for mount options. This resulted in empty Options value used for /tmp mounting.

---
 recipes-core/tmp-fs/files/tmp.mount.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/tmp-fs/files/tmp.mount.tmpl +0 -0
index fcb2f3e..be5e663 100644

recipes-core/tmp-fs/files/tmp.mount.tmpl Description=Create /tmp · line 11

Quoted 8 lines
recipes-core/tmp-fs/files/tmp.mount.tmpl +1 -1
@@ -5,7 +5,7 @@ Description=Create /tmp
 What=tmpfs
 Where=/tmp
 Type=tmpfs
-Options=${TMP_OPTIONS}
+Options=${TMP_FS_OPTIONS}
 
 [Install]
 WantedBy=local-fs.target

Thanks, applied.

Jan

Signature · 2 lines
Siemens AG, Technology
Competence Center Embedded Linux
#2 lore raw
Quoted 20 lines · Jan Kiszka
Quoted 19 lines · Uladzimir Bely

Mount unit template used wrong variable name for mount options. This resulted in empty Options value used for /tmp mounting.

---
 recipes-core/tmp-fs/files/tmp.mount.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/tmp-fs/files/tmp.mount.tmpl +1 -1
index fcb2f3e..be5e663 100644
@@ -5,7 +5,7 @@ Description=Create /tmp
 What=tmpfs
 Where=/tmp
 Type=tmpfs
-Options=${TMP_OPTIONS}
+Options=${TMP_FS_OPTIONS}
 
Quoted 7 lines

recipes-core/tmp-fs/files/tmp.mount.tmpl Description=Create /tmp · line 11

Quoted 2 lines
recipes-core/tmp-fs/files/tmp.mount.tmpl +0 -0
 [Install]
 WantedBy=local-fs.target

Thanks, applied.

Jan

Need to drop it again for now as the current value of TMP_FS_OPTIONS in the recipe is not ready for use. See also
https://gitlab.com/cip-project/cip-core/isar-cip-core/-/issues/44. We need a working default. And likely also a weak assigning of that.

Jan

Signature · 2 lines
Siemens AG, Technology
Competence Center Embedded Linux
#3 lore raw

PATCH 1/1 tmp_fs: Correct option generation

From: Quirin Gylstorff <[email protected]>

This fixes issues https://gitlab.com/cip-project/cip-core/isar-cip-core/-/issues/44.

---
 recipes-core/tmp-fs/tmp-fs_0.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/tmp-fs/tmp-fs_0.1.bb +1 -1
index 3ec20c7..b86b0fb 100644
@@ -15,7 +15,7 @@ SRC_URI = "file://postinst \
 
 TMP_FS_SIZE ?= "500M"
 TMP_FS_MODE ?= "755"
-TMP_FS_OPTIONS = "nodev,nosuid,size=${TMP_SIZE},mode=${TMP_MODE}"
+TMP_FS_OPTIONS = "nodev,nosuid,size=${TMP_FS_SIZE},mode=${TMP_FS_MODE}"
 
 TEMPLATE_FILES = "tmp.mount.tmpl"
 TEMPLATE_VARS += "TMP_FS_OPTIONS"
Signature · 1 line
2.35.1
#4 lore raw

Re: [cip-dev][isar-cip-core][PATCH] tmp_fs: Correct option generation

Quoted 14 lines · Quirin Gylstorff

From: Quirin Gylstorff <[email protected]>

This fixes issues https://gitlab.com/cip-project/cip-core/isar-cip-core/-/issues/44.

---
 recipes-core/tmp-fs/tmp-fs_0.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/tmp-fs/tmp-fs_0.1.bb +0 -0
index 3ec20c7..b86b0fb 100644

recipes-core/tmp-fs/tmp-fs_0.1.bb SRC_URI = "file://postinst \ · line 21

Quoted 8 lines
recipes-core/tmp-fs/tmp-fs_0.1.bb +1 -1
@@ -15,7 +15,7 @@ SRC_URI = "file://postinst \
 
 TMP_FS_SIZE ?= "500M"
 TMP_FS_MODE ?= "755"
-TMP_FS_OPTIONS = "nodev,nosuid,size=${TMP_SIZE},mode=${TMP_MODE}"
+TMP_FS_OPTIONS = "nodev,nosuid,size=${TMP_FS_SIZE},mode=${TMP_FS_MODE}"
 
 TEMPLATE_FILES = "tmp.mount.tmpl"
 TEMPLATE_VARS += "TMP_FS_OPTIONS"

Thanks, applied. And then I applied Uladzimir's patch on top again. Result now in next.

Jan

Signature · 2 lines
Siemens AG, Technology
Competence Center Embedded Linux