blob: f2373aae8d87f87fce9ba87870c8702e90afe43d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
REFPOLICY_TYPE = "${@d.getVar('PREFERRED_PROVIDER_virtual/refpolicy').split('-')[1] or ''}"
do_install:append () {
if [ -n "${REFPOLICY_TYPE}" ]; then
if [ "${REFPOLICY_TYPE}" = "standard" ]; then
sed -i 's/\s*\/var\/volatile\s*tmpfs\s*defaults/&,rootcontext=system_u:object_r:var_t/' \
${D}${sysconfdir}/fstab
else
sed -i 's/\s*\/var\/volatile\s*tmpfs\s*defaults/&,rootcontext=system_u:object_r:var_t:s0/' \
${D}${sysconfdir}/fstab
fi
fi
}
|