From c304ced7631d4ec4c64a9272d3f315316aee733f Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 7 Jan 2013 21:24:47 +0000 Subject: [PATCH] live-build/auto/build: Use slightly safer code for kernel handling just in case 'set -o pipefail' is ever reinstated here. --- debian/changelog | 7 +++++++ live-build/auto/build | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2e274e1a..927c84e4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.108) UNRELEASED; urgency=low + + * live-build/auto/build: Use slightly safer code for kernel handling just + in case 'set -o pipefail' is ever reinstated here. + + -- Colin Watson Mon, 07 Jan 2013 21:24:13 +0000 + livecd-rootfs (2.107) raring; urgency=low * Make sure the $PREFIX.kernel-$FLAVOUR.efi.signed output is diff --git a/live-build/auto/build b/live-build/auto/build index e23710af..3cad7908 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -320,7 +320,7 @@ for FLAVOUR in $LB_LINUX_FLAVOURS; do if [ -z "$LB_LINUX_FLAVOURS" ] || [ "$LB_LINUX_FLAVOURS" = "none" ]; then continue fi - KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-* 2>/dev/null || true) | fgrep -v .efi | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )" + KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-* 2>/dev/null || true) | (fgrep -v .efi || true) | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )" if [ -z "$KVERS" ]; then if [ -e "binary/$INITFS/vmlinuz" ]; then # already renamed by ubuntu-defaults-image