summaryrefslogtreecommitdiff
path: root/scripts/image_signing/ensure_sane_lsb-release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/image_signing/ensure_sane_lsb-release.sh')
-rwxr-xr-xscripts/image_signing/ensure_sane_lsb-release.sh8
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