Skip to content

Commit

Permalink
Merge pull request #162 from flatcar/krnowak/extra-sysexts-reports
Browse files Browse the repository at this point in the history
size-change-report: Add support for extra sysext report files
  • Loading branch information
krnowak authored Aug 15, 2024
2 parents 75437de + 29ff0b8 commit fa46a1d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion size-change-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
### board: amd64-usr, arm64-usr
### kind: old, wtd, initrd-old, initrd-wtd, oem-${OEM}-old, oem-${OEM}-wtd,
### base-sysext-${NAME}-old base-sysext-${NAME}-wtd
### extra-sysext-${NAME}-old extra-sysext-${NAME}-wtd
### arch: amd64, arm64
###
### options:
Expand Down Expand Up @@ -133,6 +134,18 @@ function file_from_kind {
name=${name%-wtd}
echo "rootfs-included-sysexts/${name}_contents_wtd.txt"
;;
extra-sysext-*-old)
name=${kind}
name=${name#extra-sysext-}
name=${name%-old}
echo "flatcar-${name}_contents.txt"
;;
extra-sysext-*-wtd)
name=${kind}
name=${name#extra-sysext-}
name=${name%-wtd}
echo "flatcar-${name}_contents_wtd.txt"
;;
*)
fail "Invalid kind '${kind}' in spec '${spec}', see help for possible values"
;;
Expand Down Expand Up @@ -278,7 +291,7 @@ function simplified_kind {
initrd-old|initrd-wtd)
kind="${kind#initrd-}"
;;
oem-*-old|oem-*-wtd|base-sysext-*-old|base-sysext-*-wtd)
oem-*-old|oem-*-wtd|base-sysext-*-old|base-sysext-*-wtd|extra-sysext-*-old|extra-sysext-*-wtd)
kind=${kind##*-}
;;
*)
Expand Down

0 comments on commit fa46a1d

Please sign in to comment.