All of lore.kernel.org
 help / color / mirror / Atom feed
From: adrian15 <adrian15sgd@gmail.com>
To: Andrey Borzenkov <arvidjaar@gmail.com>,
	 The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Trying to build Rescue image for three different target and platform
Date: Sun, 16 Mar 2014 06:56:46 +0100	[thread overview]
Message-ID: <53253D1E.5030107@gmail.com> (raw)
In-Reply-To: <20140313095128.74e85778@opensuse.site>



El 13/03/14 06:51, Andrey Borzenkov escribió:
> В Sun, 09 Mar 2014 17:14:04 +0100
> adrian15 <adrian15sgd@gmail.com> пишет:
>
>> 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/


  reply	other threads:[~2014-03-16  5:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-09 16:14 Trying to build Rescue image for three different target and platform adrian15
2014-03-13  5:51 ` Andrey Borzenkov
2014-03-16  5:56   ` adrian15 [this message]
2014-03-16  7:04     ` Andrey Borzenkov
2014-03-16 12:05       ` adrian15

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53253D1E.5030107@gmail.com \
    --to=adrian15sgd@gmail.com \
    --cc=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.