summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-07-19 21:48:44 +0200
committerStefan Agner <stefan.agner@toradex.com>2019-07-19 21:48:44 +0200
commit986526193a8f2f08ccdc77d71bb7d7f5e86185f0 (patch)
tree6ce9a00c42d20fb28dbac14b9d1e6f505901813c /classes
parent48959a970f4754c101d32864847509250b0bc931 (diff)
downloadmeta-updater-986526193a8f2f08ccdc77d71bb7d7f5e86185f0.tar.gz
image_types_ostree: add top level directories unconditionally
The Filesystem Hierarchy Standard defines several top-level directory to be writeable. Add those even in the absence of files installed by OpenEmbedded so a user might actually use them. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index 56d4d76..6bb303b 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -78,15 +78,15 @@ IMAGE_CMD_ostree () {
78 if [ "$(ls -A $dir)" ]; then 78 if [ "$(ls -A $dir)" ]; then
79 bbwarn "Data in /$dir directory is not preserved by OSTree. Consider moving it under /usr" 79 bbwarn "Data in /$dir directory is not preserved by OSTree. Consider moving it under /usr"
80 fi 80 fi
81
82 if [ -n "${SYSTEMD_USED}" ]; then
83 echo "d /var/rootdirs/${dir} 0755 root root -" >>${tmpfiles_conf}
84 else
85 echo "mkdir -p /var/rootdirs/${dir}; chown 755 /var/rootdirs/${dir}" >>${tmpfiles_conf}
86 fi
87 rm -rf ${dir} 81 rm -rf ${dir}
88 ln -sf var/rootdirs/${dir} ${dir}
89 fi 82 fi
83
84 if [ -n "${SYSTEMD_USED}" ]; then
85 echo "d /var/rootdirs/${dir} 0755 root root -" >>${tmpfiles_conf}
86 else
87 echo "mkdir -p /var/rootdirs/${dir}; chown 755 /var/rootdirs/${dir}" >>${tmpfiles_conf}
88 fi
89 ln -sf var/rootdirs/${dir} ${dir}
90 done 90 done
91 91
92 if [ -d root ] && [ ! -L root ]; then 92 if [ -d root ] && [ ! -L root ]; then