mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-06 13:41:46 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user