From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WP44D-0007iT-Fw for mharc-grub-devel@gnu.org; Sun, 16 Mar 2014 01:57:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP447-0007a9-7Z for grub-devel@gnu.org; Sun, 16 Mar 2014 01:56:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WP442-0005Co-OQ for grub-devel@gnu.org; Sun, 16 Mar 2014 01:56:55 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:63248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP442-0005Cj-D6 for grub-devel@gnu.org; Sun, 16 Mar 2014 01:56:50 -0400 Received: by mail-wi0-f175.google.com with SMTP id cc10so970197wib.14 for ; Sat, 15 Mar 2014 22:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=XlRfhrqsN8xFV11r17odnEtwMrmf6u8lPNJ8WpCNXME=; b=i5s5xkGv8kE6+yFSfxV3DtOXhg5ho37F5rHuiTty7qka1Sj8ySkL3OAsIBVEVyJVlE NeywcLW6USRXulnaxzJ07+bD28s7uvwBzHxWt+zgAzYWeqN1DMXOWpZykJh3cWm7dg7K gdE4TqyatDJedT7hNPREqntN77n0hThbsqnJZ5YerKjejIR/3I8yhztJVju9vRX/uWhs n4PeDEWhQ2Ho2atzDGY6gZqBS8034IycLQI1qUGhv6WT/bZ9uKBi8Al8OOi6mMeiL/bA 1PEe/oXRgXcW4uKk3+0h00LNAGZtVVP/EMYktHXQfkUHd/PNMzoHtWm3ubieFSbyIxCP nQDg== X-Received: by 10.194.188.41 with SMTP id fx9mr132204wjc.56.1394949409242; Sat, 15 Mar 2014 22:56:49 -0700 (PDT) Received: from [192.168.10.45] (136.Red-88-21-16.staticIP.rima-tde.net. [88.21.16.136]) by mx.google.com with ESMTPSA id di9sm12469824wid.6.2014.03.15.22.56.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Mar 2014 22:56:48 -0700 (PDT) Message-ID: <53253D1E.5030107@gmail.com> Date: Sun, 16 Mar 2014 06:56:46 +0100 From: adrian15 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.3.0 MIME-Version: 1.0 To: Andrey Borzenkov , The development of GNU GRUB Subject: Re: Trying to build Rescue image for three different target and platform References: <531C934C.5070501@gmail.com> <20140313095128.74e85778@opensuse.site> In-Reply-To: <20140313095128.74e85778@opensuse.site> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22f 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: Sun, 16 Mar 2014 05:57:00 -0000 El 13/03/14 06:51, Andrey Borzenkov escribió: > В Sun, 09 Mar 2014 17:14:04 +0100 > adrian15 пишет: > >> Basically what I want to do is to use grub-mkrescue to generate a grub2 >> rescue disk with some custom files (The Super Grub2 Disk stuff). >> >> However I want to build different files depending on target+platform >> combination. >> >> My four combinations are: >> >> * (Hybrid) x86_64+efi and i386+pc >> * i386 - pc >> * x86_64 - efi >> * i386 - efi >> >> >> 3) x86_64_efi build is working. Basically what I run in the src dir is: >> >> sudo rm -rf /usr/local/share/grub >> sudo rm -rf /usr/local/lib/grub >> make clean >> make distclean >> bash linguas.sh >> bash autogen.sh >> ./configure --target=i386 --with-platform=efi && make && sudo make >> uninstall >> make clean >> make distclean >> ./configure --target=i386 --with-platform=pc && make && sudo make >> uninstall >> make clean >> make distclean >> ./configure --target=x86_64 --with-platform=efi && make && sudo make >> uninstall >> make clean >> make distclean >> make clean >> make distclean >> bash linguas.sh >> bash autogen.sh >> ./configure --target=x86_64 --with-platform=efi && make && sudo make >> install >> > > To be honest, I do not understand what you are trying to do here. The same thing as in: https://forja.cenatic.es/plugins/scmgit/cgi-bin/gitweb.cgi?p=supergrub2/supergrub2.git;a=blob_plain;f=supergrub-meta-mkrescue;hb=22683e2b5fa0d65141c1be1a7487914b1d43f4dd (which uses Debian packages) but using source code. > >> 6) When I build i386 - pc I get this error: >> >> xorriso : FAILURE : Given path does not exist on disk: -boot_image >> system_area='/usr/local/lib/grub/i386-pc/boot_hybrid.img' >> >> Why is it failing to create /usr/local/lib/grub/i386-pc/boot_hybrid.img >> file? >> > > This file should be built and installed on 386-pc platform. If not > either there is a bug, or you are doing something wrong. It is hard to > tell, you are doing so many steps ... I see. >> 8) What's the best way to build and install an hybrid system that >> includes both: x86_64_efi and i386 - pc stuff? >> > > Just built and install grub for each platform you want to use; > grub-mkrescue will automatically include every platform it finds. Any advice for the special where I want to build x86_64_efi + x86_pc hybrid disk? > >> Current code is: >> >> ./configure --target=i386 --with-platform=pc && make && sudo make install >> make clean >> make distclean >> ./configure --target=x86_64 --with-platform=efi && make && sudo make >> install >> > > It is better to explicitly force host platform with --host=.... to make > sure user space is always the same. Otherwise it should be fine. Ok, I'll check that. > > I prefer to build every platform in separate directory, there were > issues with incomplete cleanup. If you hit one, please report. Well, as I don't want to have a separate directory for each build my question would be: What is it the official commands for doing a safe cleanup? > >> 9) A) What's the best way to remove grub configuration files installed >> on the system so that I can start from scratch so that already built >> target+platform grub binaries or configurations are ignored? >> > > There are no configuration files after "make install" (if we do not > count /etc/grub.d as configuration). I meant the ones that someone makes grub-mkrescue to look for the /usr/local/lib/grub/i386-pc/boot_hybrid.img files which I suppose are not found in source code but in the system (Gnu/Linux filesystem I mean). Hope it's a bit more clear what I mean. Thank you. adrian15 -- Support free software. Donate to Super Grub Disk. Apoya el software libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/donate/