summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass8
-rw-r--r--classes/sota.bbclass3
2 files changed, 5 insertions, 6 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index 0b928a3..e66956a 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -87,7 +87,7 @@ IMAGE_CMD_ostree () {
87 if [ -n "${SYSTEMD_USED}" ]; then 87 if [ -n "${SYSTEMD_USED}" ]; then
88 echo "d /var/rootdirs/${dir} 0755 root root -" >>${tmpfiles_conf} 88 echo "d /var/rootdirs/${dir} 0755 root root -" >>${tmpfiles_conf}
89 else 89 else
90 echo "mkdir -p /var/rootdirs/${dir}; chown 755 /var/rootdirs/${dir}" >>${tmpfiles_conf} 90 echo "mkdir -p /var/rootdirs/${dir}; chmod 755 /var/rootdirs/${dir}" >>${tmpfiles_conf}
91 fi 91 fi
92 ln -sf var/rootdirs/${dir} ${dir} 92 ln -sf var/rootdirs/${dir} ${dir}
93 done 93 done
@@ -100,7 +100,7 @@ IMAGE_CMD_ostree () {
100 if [ -n "${SYSTEMD_USED}" ]; then 100 if [ -n "${SYSTEMD_USED}" ]; then
101 echo "d /var/roothome 0700 root root -" >>${tmpfiles_conf} 101 echo "d /var/roothome 0700 root root -" >>${tmpfiles_conf}
102 else 102 else
103 echo "mkdir -p /var/roothome; chown 700 /var/roothome" >>${tmpfiles_conf} 103 echo "mkdir -p /var/roothome; chmod 700 /var/roothome" >>${tmpfiles_conf}
104 fi 104 fi
105 105
106 rm -rf root 106 rm -rf root
@@ -117,7 +117,7 @@ IMAGE_CMD_ostree () {
117 if [ -n "${SYSTEMD_USED}" ]; then 117 if [ -n "${SYSTEMD_USED}" ]; then
118 echo "d /var/usrlocal 0755 root root -" >>${tmpfiles_conf} 118 echo "d /var/usrlocal 0755 root root -" >>${tmpfiles_conf}
119 else 119 else
120 echo "mkdir -p /var/usrlocal; chown 755 /var/usrlocal" >>${tmpfiles_conf} 120 echo "mkdir -p /var/usrlocal; chmod 755 /var/usrlocal" >>${tmpfiles_conf}
121 fi 121 fi
122 122
123 dirs="bin etc games include lib man sbin share src" 123 dirs="bin etc games include lib man sbin share src"
@@ -126,7 +126,7 @@ IMAGE_CMD_ostree () {
126 if [ -n "${SYSTEMD_USED}" ]; then 126 if [ -n "${SYSTEMD_USED}" ]; then
127 echo "d /var/usrlocal/${dir} 0755 root root -" >>${tmpfiles_conf} 127 echo "d /var/usrlocal/${dir} 0755 root root -" >>${tmpfiles_conf}
128 else 128 else
129 echo "mkdir -p /var/usrlocal/${dir}; chown 755 /var/usrlocal/${dir}" >>${tmpfiles_conf} 129 echo "mkdir -p /var/usrlocal/${dir}; chmod 755 /var/usrlocal/${dir}" >>${tmpfiles_conf}
130 fi 130 fi
131 done 131 done
132 132
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index e6a0f8b..8f3f5d7 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -6,8 +6,7 @@ SOTA_HARDWARE_ID ??= "${MACHINE}"
6 6
7IMAGE_CLASSES += " image_types_ostree image_types_ota image_repo_manifest" 7IMAGE_CLASSES += " image_types_ostree image_types_ota image_repo_manifest"
8IMAGE_INSTALL_append_sota = " aktualizr aktualizr-info ${SOTA_CLIENT_PROV} \ 8IMAGE_INSTALL_append_sota = " aktualizr aktualizr-info ${SOTA_CLIENT_PROV} \
9 ostree os-release ostree-kernel \ 9 ostree os-release ostree-kernel ostree-initramfs \
10 ${@'ostree-initramfs' if d.getVar('KERNEL_IMAGETYPE') != 'fitImage' else ''} \
11 ${@'ostree-devicetrees' if oe.types.boolean('${OSTREE_DEPLOY_DEVICETREE}') else ''}" 10 ${@'ostree-devicetrees' if oe.types.boolean('${OSTREE_DEPLOY_DEVICETREE}') else ''}"
12 11
13IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck ota-ext4 wic', ' ', d)}" 12IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck ota-ext4 wic', ' ', d)}"