diff options
author | Bob Moragues <moragues@google.com> | 2018-08-13 12:10:33 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-13 21:58:48 -0700 |
commit | 661cca6bf64a92a8a4d72196c0b69e0da7a423b5 (patch) | |
tree | e181a59b74056aa8db824ab421377896c80415bd /scripts/image_signing | |
parent | 4a0352935ead9820955d39ac7b28396f8bd37271 (diff) | |
download | vboot-661cca6bf64a92a8a4d72196c0b69e0da7a423b5.tar.gz |
vboot: remove line length check from lsb_syntaxcheck()
Unibuilds, such as Octopus, generate long lines listing the
individual board names.
Removing a check which is restricting the unibuilds ability to add
additional boards to the list.
BUG=chromium:873552
BRANCH=none
TEST=none
Change-Id: I080f4f251935eb19ee3377556500a5bd98117a2f
Reviewed-on: https://chromium-review.googlesource.com/1173256
Commit-Ready: Bob Moragues <moragues@chromium.org>
Tested-by: Bob Moragues <moragues@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'scripts/image_signing')
-rwxr-xr-x | scripts/image_signing/ensure_sane_lsb-release.sh | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/image_signing/ensure_sane_lsb-release.sh b/scripts/image_signing/ensure_sane_lsb-release.sh index d86eacb3..9ff7c1c2 100755 --- a/scripts/image_signing/ensure_sane_lsb-release.sh +++ b/scripts/image_signing/ensure_sane_lsb-release.sh @@ -65,7 +65,6 @@ check_keyval_in_list() { # - No space after key, no space before value. # - key is all A-Z or _, but not starting with _. # - value is made up of printable characters, or is empty. -# - Each line is a reasonable size (<255 bytes). # - The whole file is a reasonable size (4kb). lsb_syntaxcheck() { local lsbfile="$1" @@ -84,13 +83,6 @@ lsb_syntaxcheck() { error "${badlines}" fi - # Checks for a lines exceeding a reasonable overall length. - badlines=$(grep -E '^.{255}' "$lsbfile") - if [ -n "$badlines" ]; then - syntaxbad=1 - error "${lsbfile}: Some lsb-release lines seem unreasonably long:" - error "${badlines}" - fi # Overall file size check: size=$(ls -sk "$lsbfile" | cut -d ' ' -f 1) if [ $size -gt 4 ]; then |