From abf8b1be28cdc124eea6443bf808cec88a3385fc Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Tue, 16 Oct 2018 09:28:47 -0700 Subject: [PATCH] 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 --- afb.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/afb.sh b/afb.sh index e095d52..8112d37 100755 --- a/afb.sh +++ b/afb.sh @@ -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