Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZkF11-0002ya-Sv for mharc-grub-devel@gnu.org; Thu, 08 Oct 2015 13:30:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkF0T-0002wW-K6 for grub-devel@gnu.org; Thu, 08 Oct 2015 13:30:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkEzy-00038r-7K for grub-devel@gnu.org; Thu, 08 Oct 2015 13:29:29 -0400 Received: from omr-a008e.mx.aol.com ([204.29.186.51]:42615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkEzx-00032s-Cf for grub-devel@gnu.org; Thu, 08 Oct 2015 13:28:57 -0400 Received: from mtaout-aak02.mx.aol.com (mtaout-aak02.mx.aol.com [172.27.2.226]) by omr-a008e.mx.aol.com (Outbound Mail Relay) with ESMTP id CCB3F38000B0 for ; Thu, 8 Oct 2015 13:28:56 -0400 (EDT) Received: from localhost.localdomain (host31-48-64-89.range31-48.btcentralplus.com [31.48.64.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mtaout-aak02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 75D1D3800009F for ; Thu, 8 Oct 2015 13:28:56 -0400 (EDT) From: Colin Close To: The development of GNU GRUB Subject: Re: Loading modules with an embedded config file seems to fail Date: Thu, 08 Oct 2015 18:28:55 +0100 Message-ID: <10470506.m6mQKhReK1@localhost.localdomain> User-Agent: KMail/4.14.3 (Linux/3.18.16-nrjQL-desktop-2omv; KDE/4.14.3; x86_64; ; ) In-Reply-To: References: <1870417.0EroPUxT0I@localhost.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1444325336; bh=NGxzJTvNTcZANSYakp1+y84VkjMmu1810H6hyriOiSM=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=AV8xQVGySpJWtOGxhDHaAIn+7V1+L0WZn0R9xVLfwytWhLcNhrLeHzzT1Z2Q3q8Vw yOxkAXOrlOLX4YDATqMZN7p2EiBT2spCResn2EI3GHMVu56TdmqjB9pqkPUeAqvXR8 nKFpUBJ0FIxwhF85czm1vNFFyVbjo13URLm1aoEY= x-aol-sid: 3039ac1b02e25616a7d865f9 X-AOL-IP: 31.48.64.89 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 204.29.186.51 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 17:30:01 -0000 Thanks for your prompt reply, is this likely to change or is it dictated by thge 32k size limit? Best, Colin Close On Thursday 08 Oct 2015 17:15:27 Andrei Borzenkov wrote: > On Thu, Oct 8, 2015 at 4:55 PM, Colin Close wrote: > > I have created an embedded image like this:- > > chroot "$CHROOTNAME" /usr/bin/grub2-mkimage -d "$GRUB_LIB" -O i386-pc -o "$GRUB_IMG" -p /boot/grub \-c /ISO/boot/grub/start_cfg iso9660 biosdisk test > > cat "$CHROOTNAME"/"$GRUB_LIB"/boot.img "$CHROOTNAME"/"$GRUB_IMG" > "$ISOROOTNAME"/boot/grub/grub2-embed_img > > cat "$CHROOTNAME"/"$GRUB_LIB"/cdboot.img "$CHROOTNAME"/"$GRUB_IMG" > "$ISOROOTNAME"/boot/grub/grub2-eltorito.img > > > > and used the following options with xorriso to build an iso image > > > > XORRISO_OPTIONS1=" -b boot/grub/grub2-eltorito.img -no-emul-boot -boot-info-table --embedded-boot $ISOROOTNAME/boot/grub/grub2-embed_img --protective-msdos-label" > > > > The embedded image contain this start_cfg file > > > > if [ "${grub_platform}" == "efi" ]; then > > search --no-floppy --set=root --fs-uuid '%GRUB_UUID%' > > set prefix=($root)/boot/grub > > set efi=1 > > source ($root)/boot/grub/grub.cfg > > fi > > insmod part_apple > > insmod part_bsd > > insmod part_gpt > > insmod part_msdos > > set bios=1 > > set efi=0 > > source ($root)/boot/grub/grub.cfg > > > > When I boot the iso in BIOS mode I get the following errors reported > > Unknown command ` if ' > > Unknown command ` search ' > > Unknown command ` source ' > > Unknown command ` fi ' > > Unknown command ` source ' > > > > Embedded config is processed using rescue parser which does not > understand compound statements. This has been discussed just recently > on help-grub. The guy intended to open bug report for misleading > documentation but apparently never came around to do it. > > > Can anyone help me with this I have tried every possible strategy and nothing seems to work. Currently the config file is set up so it falls through to the bios boot and the flags get set right and things do work but obviously this is not ideal. > > Best, > > Colin Close > > OpenMandriva > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel