[arch-releng] aif profile for EFI/GPT with grub2, dm_crypt+lvm2 on SSD, archiso EFI?
based on a script somebody made https://bbs.archlinux.org/viewtopic.php?id=129885 I wrote a profile for aif -p automatic: http://pastie.org/3737804 For creating the filesystems, i leverage the aif functionality (it supports everything needed). For partitioning and installing the bootloader I use 2 custom functions as aif currently does not support gpt/efi/grub2 The install seems to run fine, but since archiso currently boots through bios, i cannot make the efi entries with efibootmgr (no efi vars after loading efivars module). I saw the recent patches for archiso EFI support, what's the current status of that? Is there a method to create a usb stick similar as described here https://wiki.archlinux.org/index.php/USB_Installation_Media#Without_overwrit... that is: an EFI-booting usb stick with archiso, which you can easily mount to put custom files on? If only I can figure out how to make the system boot, I think I'm pretty close :) Dieter
On 04/06/2012 06:42 AM, Dieter Plaetinck wrote:
based on a script somebody made https://bbs.archlinux.org/viewtopic.php?id=129885 I wrote a profile for aif -p automatic: http://pastie.org/3737804 For creating the filesystems, i leverage the aif functionality (it supports everything needed). For partitioning and installing the bootloader I use 2 custom functions as aif currently does not support gpt/efi/grub2 Nice :)
Do you need grub2 installed on live-enviroment? In such case we need to replace grub with grub2.
The install seems to run fine, but since archiso currently boots through bios, i cannot make the efi entries with efibootmgr (no efi vars after loading efivars module).
Do you want to include this tool (efibootmgr) in live-enviroment?
I saw the recent patches for archiso EFI support, what's the current status of that? STATUS: Working (1) / Waiting for feedback (2) / Waiting for Linux-3.3 hits [core] (3)
Is there a method to create a usb stick similar as described here https://wiki.archlinux.org/index.php/USB_Installation_Media#Without_overwrit... that is: an EFI-booting usb stick with archiso, which you can easily mount to put custom files on? Sure, skip the steps of installing syslinux-mbr, extlinux and marking
(1) Its works: there is no boot manager, just an efi-shell that executes an startup.nsh for passing boot parameters to the kernel. Using this method, at least until EFI_STUB supports linux.conf in mainline, anyway doing in this way is better because you can "edit" boot parameters. (2) Such patch increments in 20 MiB each of: netinstall-x86_64, core-x86_64, netinstall-dual and core-dual. The question is: all these ISOs should be EFI-enabled for "El Torito"? (3) Can be pushed now, will boot for EFI, but vmlinuz from [core] is not an EFI apps, you will get an EFI-shell. partition active, since they are not needed for EFI. Just unpack <ISO>/EFI/archiso/efiboot.img on <USB-KEY>/EFI and enjoy.
If only I can figure out how to make the system boot, I think I'm pretty close :)
Dieter
-- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
On Fri, Apr 6, 2012 at 19:34, Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> wrote:
On 04/06/2012 06:42 AM, Dieter Plaetinck wrote:
based on a script somebody made https://bbs.archlinux.org/viewtopic.php?id=129885 I wrote a profile for aif -p automatic: http://pastie.org/3737804 For creating the filesystems, i leverage the aif functionality (it supports everything needed). For partitioning and installing the bootloader I use 2 custom functions as aif currently does not support gpt/efi/grub2
Nice :)
Do you need grub2 installed on live-enviroment? In such case we need to replace grub with grub2.
I suggest doing this.
The install seems to run fine, but since archiso currently boots through bios, i cannot make the efi entries with efibootmgr (no efi vars after loading efivars module).
Do you want to include this tool (efibootmgr) in live-enviroment?
Better.
I saw the recent patches for archiso EFI support, what's the current status of that?
STATUS: Working (1) / Waiting for feedback (2) / Waiting for Linux-3.3 hits [core] (3)
(1) Its works: there is no boot manager, just an efi-shell that executes an startup.nsh for passing boot parameters to the kernel. Using this method, at least until EFI_STUB supports linux.conf in mainline, anyway doing in this way is better because you can "edit" boot parameters.
I suggest keeping the shell, as it will give access to a shell in those systems where the UEFI does not provide any option for launching the shell or other efi apps.
(2) Such patch increments in 20 MiB each of: netinstall-x86_64, core-x86_64, netinstall-dual and core-dual. The question is: all these ISOs should be EFI-enabled for "El Torito"?
That was my initial comment too. Size increment and file duplication.
(3) Can be pushed now, will boot for EFI, but vmlinuz from [core] is not an EFI apps, you will get an EFI-shell.
Is there a method to create a usb stick similar as described here
https://wiki.archlinux.org/index.php/USB_Installation_Media#Without_overwrit... that is: an EFI-booting usb stick with archiso, which you can easily mount to put custom files on?
Sure, skip the steps of installing syslinux-mbr, extlinux and marking partition active, since they are not needed for EFI.
Just unpack <ISO>/EFI/archiso/efiboot.img on <USB-KEY>/EFI and enjoy.
https://bbs.archlinux.org/viewtopic.php?pid=1083439#p1083439
If only I can figure out how to make the system boot, I think I'm pretty close :)
Dieter
-- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
On Fri, 06 Apr 2012 11:04:49 -0300 Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> wrote:
On 04/06/2012 06:42 AM, Dieter Plaetinck wrote:
based on a script somebody made https://bbs.archlinux.org/viewtopic.php?id=129885 I wrote a profile for aif -p automatic: http://pastie.org/3737804 For creating the filesystems, i leverage the aif functionality (it supports everything needed). For partitioning and installing the bootloader I use 2 custom functions as aif currently does not support gpt/efi/grub2 Nice :)
Do you need grub2 installed on live-enviroment? In such case we need to replace grub with grub2.
no, aif currently only supports grub. removing grub from the iso would probably break aif. (maybe aif only needs grub to be installed onto the target system, but i'm not sure) anyway grub2 is only a `pacman -S grub2` away
update: using the archiso booting from EFI, it works fine. using the installed system already. i uploaded the profile here: https://github.com/Dieterbe/aif-configs/blob/master/dieter-t420s
On Sun, Apr 8, 2012 at 18:53, Dieter Plaetinck <dieter@plaetinck.be> wrote:
On Fri, 06 Apr 2012 11:04:49 -0300 Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> wrote:
On 04/06/2012 06:42 AM, Dieter Plaetinck wrote:
based on a script somebody made https://bbs.archlinux.org/viewtopic.php?id=129885 I wrote a profile for aif -p automatic: http://pastie.org/3737804 For creating the filesystems, i leverage the aif functionality (it supports everything needed). For partitioning and installing the bootloader I use 2 custom functions as aif currently does not support gpt/efi/grub2 Nice :)
Do you need grub2 installed on live-enviroment? In such case we need to replace grub with grub2.
no, aif currently only supports grub. removing grub from the iso would probably break aif. (maybe aif only needs grub to be installed onto the target system, but i'm not sure) anyway grub2 is only a `pacman -S grub2` away
Why is grub a depends of AIF? Why not make grub optdepends? What about syslinux? - Keshav
On Mon, 9 Apr 2012 16:08:19 +0530 Keshav P R <the.ridikulus.rat@gmail.com> wrote:
On Sun, Apr 8, 2012 at 18:53, Dieter Plaetinck <dieter@plaetinck.be> wrote:
On Fri, 06 Apr 2012 11:04:49 -0300 Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> wrote:
On 04/06/2012 06:42 AM, Dieter Plaetinck wrote:
based on a script somebody made https://bbs.archlinux.org/viewtopic.php?id=129885 I wrote a profile for aif -p automatic: http://pastie.org/3737804 For creating the filesystems, i leverage the aif functionality (it supports everything needed). For partitioning and installing the bootloader I use 2 custom functions as aif currently does not support gpt/efi/grub2 Nice :)
Do you need grub2 installed on live-enviroment? In such case we need to replace grub with grub2.
no, aif currently only supports grub. removing grub from the iso would probably break aif. (maybe aif only needs grub to be installed onto the target system, but i'm not sure) anyway grub2 is only a `pacman -S grub2` away
Why is grub a depends of AIF? Why not make grub optdepends? What about syslinux?
- Keshav
actually grub is now listed as optdep instead of dep. syslinux is also an optdep. see https://github.com/Dieterbe/aif/commit/7d6ea8a2ed68b59d158684ac2500cb3c3411e... with the next aif package, this will be visible through the package management (is it critical that we have this right now?)
participants (3)
-
Dieter Plaetinck
-
Gerardo Exequiel Pozzi
-
Keshav P R