Fix mount options passed to systemd unit
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
@@ -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
Jan Kiszka
AppliedQuoted 13 lines · Uladzimir Bely
Mount unit template used wrong variable name for mount options. This resulted in empty
Optionsvalue used for /tmp mounting.Signed-off-by Uladzimir Bely <[email protected]>--- 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
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
Quoted 20 lines · Jan Kiszka
Quoted 19 lines · Uladzimir Bely
Mount unit template used wrong variable name for mount options. This resulted in empty
Optionsvalue used for /tmp mounting.Signed-off-by Uladzimir Bely <[email protected]>--- 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@@ -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.targetThanks, 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
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
@@ -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
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.
Signed-off-by Quirin Gylstorff <[email protected]>--- 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
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