From 9a2fc09818021fbef8525bd1bae9240d381f9644 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sat, 1 Apr 2006 22:28:59 -0800 Subject: [PATCH] Imported Debian patch 3.6-2 --- debian/changelog | 8 ++++++++ debian/control | 2 +- debian/elilo.sh | 9 +++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4b0cb5a..bd730c3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +elilo (3.6-2) unstable; urgency=low + + * freshen gnu-efi build dependency version, closes: #355252 + * patch from Alex Williamson that adds support to our elilo user space + script for the vmm= option needed by Xen, closes: #350185 + + -- Bdale Garbee Sat, 1 Apr 2006 22:28:59 -0800 + elilo (3.6-1) unstable; urgency=low * new upstream version diff --git a/debian/control b/debian/control index 68b7730..1571088 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: elilo Section: admin Priority: optional Maintainer: Bdale Garbee -Build-Depends: debhelper (>> 5), gnu-efi (>=3.0b-1) +Build-Depends: debhelper (>> 5), gnu-efi (>=3.0c-1) Standards-Version: 3.6.2.1 Package: elilo diff --git a/debian/elilo.sh b/debian/elilo.sh index df78c64..6a65e70 100644 --- a/debian/elilo.sh +++ b/debian/elilo.sh @@ -364,6 +364,8 @@ copyfiles() sed 's/^image[[:space:]]*=[[:space:]]*//' | grep -v ':'` initrdfiles=`grep '^[[:space:]]*initrd[[:space:]]*=' $bootconf | \ sed 's/.*=[[:space:]]*//' | grep -v ':'` + vmmfiles=`grep '^[[:space:]]*vmm[[:space:]]*=' $bootconf | \ + sed 's/.*=[[:space:]]*//' | grep -v ':'` ## Point of no return, removing the old EFI/debian tree rm -rf $TARGET/$EFIROOT @@ -398,6 +400,7 @@ recreated every time elilo runs. Any local changes will be lost.\n\ -e "s|\t| |g" \ -e "s|\(^image[[:space:]]*=[[:space:]]*\)\([^:]*\)$|\1$EFIROOT\2|" \ -e "s|\(^[[:space:]]*initrd[[:space:]]*=[[:space:]]*\)\([^:]*\)$|\1$EFIROOT\2|" \ + -e "s|\(^[[:space:]]*vmm[[:space:]]*=[[:space:]]*\)\([^:]*\)$|\1$EFIROOT\2|" \ < "$bootconf" > "$TARGET/$EFIROOT/$CFFILE" if [ $? != 0 ] ; then echo 1>&2 "$PRG: An error occured while writing to $boot" @@ -406,7 +409,7 @@ recreated every time elilo runs. Any local changes will be lost.\n\ [ "$DEBUG" = 1 ] && echo "----" && cat "$TARGET/$EFIROOT/$CFFILE" && echo "----" - for i in $imagefiles $initrdfiles; do + for i in $imagefiles $initrdfiles $vmmfiles; do [ "$VERBOSE" = 1 ] && echo "$PRG: Installing $i on $boot..." if [ -f $i ]; then mkdir -p `dirname "$TARGET/$EFIROOT/$i"` @@ -575,7 +578,9 @@ chkspace() sed 's/^image[[:space:]]*=[[:space:]]*//' | grep -v ':'` initrdfiles=`grep '^[[:space:]]*initrd[[:space:]]*=' $bootconf | \ sed 's/.*=[[:space:]]*//' | grep -v ':'` - bytesneeded=`cat $imagefiles $initrdfiles $install $bootconf 2>/dev/null | wc -c` + vmmfiles=`grep '^[[:space:]]*vmm[[:space:]]*=' $bootconf | \ + sed 's/.*=[[:space:]]*//' | grep -v ':'` + bytesneeded=`cat $imagefiles $initrdfiles $vmmfiles $install $bootconf 2>/dev/null | wc -c` # convert to KB, allowing 5% overhead kbneeded=$(( bytesneeded / 1024 + bytesneeded / 20480 )) kbavailable=$(df -P -k $TARGET | sed -n "s|^$boot[[:space:]]\+[0-9]\+[[:space:]]\+[0-9]\+[[:space:]]\+\([0-9]\+\).*$|\1|p") -- 2.30.2