AFB: also update version in /usr/share/clear/version

The version numbers in /usr/lib/os-release and /usr/share/clear/version
should be identical, so overwrite the latter file with the correct
value.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2018-10-23 11:47:50 -07:00
committed by tmarcu
parent 70a3f68c58
commit abf8b1be28
+6 -4
View File
@@ -74,11 +74,13 @@ for i in $(grep -lir "\[STATUS\]: Deprecated" upstream-bundles/ local-bundles/);
b=$(basename $i)
rm -f update/image/20/$b-info; mkdir update/image/20/$b
done
# Replace the +10 version in /usr/lib/os-release with +20 version and write the
# new format to the format file on disk. This is so clients will already be on
# the new format when they update to the +10 because the content is the same as
# the +20.
# Replace the +10 version in the version metadata files (/usr/lib/os-release
# and /usr/share/clear/version) with +20 version and write the new format to
# the format file on disk. This is so clients will already be on the new
# format when they update to the +10 because the content is the same as the
# +20.
sed -i 's/\(VERSION_ID=\).*/\130/' update/image/20/full/usr/lib/os-release
echo -n 30 > update/image/20/full/usr/share/clear/version
echo 2 > update/image/20/full/usr/share/defaults/swupd/format
# build update based on the modified bundle information. This is *not* a
# minversion and these manifests must be built with the mixer from the original