[SCM] live-build branch, debian-old-2.0, updated. debian/2.0.11-1-9-gb2e3959

Daniel Baumann daniel at debian.org
Mon Jan 17 08:56:19 UTC 2011


The following commit has been merged in the debian-old-2.0 branch:
commit b2e395955d2b0f4e84858c08cf62e3a051086572
Author: Luigi Capriotti <l.capriotti at tiscali.it>
Date:   Mon Jan 17 09:55:29 2011 +0100

    Support for newer grub-common package.
    
    A recent change in grub-common package (#584415) has mandated
    the use of a destination format in calls to grub-mkimage, a
    parameter that was not previously supported.

diff --git a/scripts/build/lb_binary_iso b/scripts/build/lb_binary_iso
index ca460c4..ad7357e 100755
--- a/scripts/build/lb_binary_iso
+++ b/scripts/build/lb_binary_iso
@@ -163,7 +163,14 @@ input_dir=/usr/lib/grub/i386-pc
 
 # build core.img
 core_img=\$(mktemp)
-grub-mkimage -d \${input_dir} -o \${core_img} biosdisk iso9660
+
+# first version requiring -O is 1.98+20100527, see #584415
+if [ "$(grub-mkimage --help | grep '\-O')" ]
+then
+	grub-mkimage -d \${input_dir} -o \${core_img} -O i386-pc biosdisk iso9660
+else
+	grub-mkimage -d \${input_dir} -o \${core_img} biosdisk iso9660
+fi
 
 # build grub_eltorito image
 cat \${input_dir}/cdboot.img \${core_img} > binary/boot/grub/grub_eltorito

-- 
live-build



More information about the debian-live-changes mailing list