Commit eb9c7401 authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: fixup dsa-check-running-kernel to deal with the ubuntu LTS changes…

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent eb294af8
......@@ -202,6 +202,12 @@ for on_disk in \
fi
[ -z "$on_disk_version" ] || break
on_disk_version="`cat "$on_disk" | $STRINGS | grep 'Linux version' | head -n1`"
if [ -x /usr/bin/lsb_release ] ; then
vendor=$(lsb_release -i -s)
if [ -n "$vendor" ] && [ "xDebian" != "x$vendor" ] ; then
on_disk_version=$( echo $on_disk_version|sed -e "s/ ($vendor [[:alnum:]\.-]\+ [[:alnum:]\.]\+)//")
fi
fi
[ -z "$on_disk_version" ] || break
echo "UNKNOWN: Failed to get a version string from image $on_disk"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment