Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZkBpl-0004U8-Oy for mharc-grub-devel@gnu.org; Thu, 08 Oct 2015 10:06:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkBfx-0002gI-RT for grub-devel@gnu.org; Thu, 08 Oct 2015 09:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkBfs-0005Sw-58 for grub-devel@gnu.org; Thu, 08 Oct 2015 09:56:05 -0400 Received: from omr-a018e.mx.aol.com ([204.29.186.64]:59792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkBfs-0005Se-0m for grub-devel@gnu.org; Thu, 08 Oct 2015 09:56:00 -0400 Received: from mtaout-aab02.mx.aol.com (mtaout-aab02.mx.aol.com [172.26.126.206]) by omr-a018e.mx.aol.com (Outbound Mail Relay) with ESMTP id 21D353800086 for ; Thu, 8 Oct 2015 09:55:59 -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-aab02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id DCEFF3800008F for ; Thu, 8 Oct 2015 09:55:58 -0400 (EDT) From: Colin Close To: The development of GNU GRUB Subject: Loading modules with an embedded config file seems to fail Date: Thu, 08 Oct 2015 14:55:57 +0100 Message-ID: <1870417.0EroPUxT0I@localhost.localdomain> User-Agent: KMail/4.14.3 (Linux/3.18.16-nrjQL-desktop-2omv; KDE/4.14.3; x86_64; ; ) 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=1444312559; bh=bgEpwHjL/Mc7HQ1msi2KiQx7IxC0SE/hmRRMHMnNbkE=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=JA8j6PE5kZJU+Oq1NB3h7N1lrQywrvR656ySvoEo6iGBj2RZ6gou5hUD24QvIzujV yrcDkwDqxQ5OmNv+UXphzGYRJldX3y7xSLOgdqDiyV46lNJA8lsDmP/WhBjcxt8he5 WkueEuIj/c907dNIWoIpiq0PmHwJsd+mb515Qn0c= x-aol-sid: 3039ac1a7ece561675ee4d72 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.64 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 13:56:06 -0000 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 ' 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