Antergos / Cnchi

A modern, flexible online system installer for Antergos Linux
GNU General Public License v3.0
291 stars 101 forks source link

Bootloader Installation Failures #302

Closed lots0logs closed 9 years ago

lots0logs commented 9 years ago

We're not quite there yet but we are close. Let's organize the remaining issues here to make it easier to track them.

lots0logs commented 9 years ago

Notice this: /install/boot/boot/...

[2015-04-20 13:35:13] [advanced] DEBUG: Added /dev/sda1 to changelist: createme[No] relabel[Yes] fmt[Yes] mnt[/boot] encrypt[No]
[2015-04-20 13:35:13] [advanced] DEBUG: Added /dev/sda2 to changelist: createme[No] relabel[No] fmt[Yes] mnt[/] encrypt[Yes]
[2015-04-20 13:35:13] [advanced] DEBUG: Added /dev/sda4 to changelist: createme[No] relabel[No] fmt[Yes] mnt[/home] encrypt[Yes]
[2015-04-20 13:35:15] [advanced] INFO: Creating new ext2 filesystem in /dev/sda1 labeled /boot
[2015-04-20 13:35:16] [advanced] INFO: 
[2015-04-20 13:35:16] [advanced] INFO: Creating new btrfs filesystem in /dev/sda2 labeled /
[2015-04-20 13:35:16] [advanced] INFO: btrfs-progs v3.19
See http://btrfs.wiki.kernel.org for more information.

Turning ON incompat feature 'extref': increased hardlink limit per file to 65536
Turning ON incompat feature 'skinny-metadata': reduced-size metadata extent refs
fs created label / on /dev/sda2
    nodesize 16384 leafsize 16384 sectorsize 4096 size 34.58GiB

[2015-04-20 13:35:16] [advanced] INFO: Creating new btrfs filesystem in /dev/sda4 labeled /home
[2015-04-20 13:35:16] [advanced] INFO: btrfs-progs v3.19
See http://btrfs.wiki.kernel.org for more information.

Turning ON incompat feature 'extref': increased hardlink limit per file to 65536
Turning ON incompat feature 'skinny-metadata': reduced-size metadata extent refs
fs created label /home on /dev/sda4
    nodesize 16384 leafsize 16384 sectorsize 4096 size 430.20GiB

[2015-04-20 13:35:16] [advanced] INFO: Antergos will install the bootloader grub2 in device /dev/sda
[2015-04-20 13:35:16] [process] DEBUG: Mounting partition /dev/sda2 into /install directory
[2015-04-20 13:35:17] [process] DEBUG: Mounting partition /dev/sda1 into /install/boot/boot directory
[2015-04-20 13:35:17] [process] DEBUG: Mounting partition /dev/sda4 into /install/home directory
[2015-04-20 13:35:17] [process] DEBUG: Prepare pacman...
[2015-04-20 13:35:17] [process] DEBUG: Creating a temporary pacman.conf for x86_64 architecture
.....
[2015-04-20 13:56:10] [process] DEBUG: Installing bootloader...
[2015-04-20 13:56:11] [bootloader] DEBUG: Set GRUB_THEME="/boot/grub/themes/Antergos-Default/theme.txt" in /etc/default/grub
[2015-04-20 13:56:11] [bootloader] DEBUG: Set GRUB_CMDLINE_LINUX_DEFAULT="quiet " in /etc/default/grub
[2015-04-20 13:56:11] [bootloader] DEBUG: Set GRUB_DISTRIBUTOR="Antergos" in /etc/default/grub
[2015-04-20 13:56:11] [bootloader] DEBUG: /etc/default/grub configuration completed successfully.
[2015-04-20 13:56:11] [bootloader] DEBUG: Cnchi will install the Grub2 (bios) loader
[2015-04-20 13:56:11] [bootloader] INFO: Installing GRUB(2) BIOS boot loader in /dev/sda
[2015-04-20 13:56:11] [chroot] DEBUG: Mounting special dir '/dev' to /install/dev
[2015-04-20 13:56:11] [chroot] DEBUG: Mounting special dir '/dev/pts' to /install/dev/pts
[2015-04-20 13:56:11] [chroot] DEBUG: Mounting special dir '/proc' to /install/proc
[2015-04-20 13:56:11] [chroot] DEBUG: Mounting special dir '/sys' to /install/sys
[2015-04-20 13:56:18] [chroot] DEBUG: Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
[2015-04-20 13:56:18] [bootloader] INFO: Installing Grub2 locales.
[2015-04-20 13:56:18] [bootloader] INFO: Copying GRUB(2) Theme Files
[2015-04-20 13:56:18] [bootloader] DEBUG: 50mounted-tests file patched successfully
[2015-04-20 13:56:22] [chroot] DEBUG: Generating grub configuration file ...
Found theme: /boot/grub/themes/Antergos-Default/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
done
[2015-04-20 13:56:22] [bootloader] INFO: GRUB(2) BIOS has been successfully installed.
karasu commented 9 years ago

"When a separate /boot is used, it must be ext2"

Why? I think that this restriction no longer applies, does it?

lots0logs commented 9 years ago

Turns out I was wrong. Though, IMO its still the most sane method :bowtie:

Mikaela commented 9 years ago

Where does the ext2 recommendation come to /boot? Arch wiki suggests FAT32 for it.

lots0logs commented 9 years ago

It comes from experience, I've been a linux user for 12 years now (wow, i'm getting old!) ...But like I said, its only my opinion.

kragil commented 9 years ago

When / is btrfs you cannot install because the installer does not recognize the boot partition. Quite annoying.

karasu commented 9 years ago

@kragil : It's already fixed. See #304

kragil commented 9 years ago

OK, cool. Thanks! What do I have to do to get the fix so that I can install on BTRFS with compression, which is really important to me??

lots0logs commented 9 years ago

compression is enabled by default for btrfs partitions :smile:

karasu commented 9 years ago

@kragil : If you want to try the latest version see this comment: https://github.com/Antergos/Cnchi/issues/303#issuecomment-94838586

ghost commented 9 years ago

314 should fix luks + gummiboot

just if anyone is searching for the fix

suciptoid commented 9 years ago

Cnchi fail install grub on my laptop with ubuntu os preinstalled before. I want dual boot with ubuntu, but after install and reboot, just show ubuntu grub.

And finaly i update grub manually to use Antergoos Grub

kragil commented 9 years ago

OK, now when you update Cnchi setting up a btrfs root partition works. /boot is still needed though. Compression is not default for BtrFS AFAICS.

karasu commented 9 years ago

@showcheap , @kragil : There's something wrong with os-prober (or at least is not working here). https://github.com/Antergos/Cnchi/issues/321 Oh, latest version shows /boot label (in green) when there is a /boot partition present, but is not mandatory at all (at least in a non UEFI system).

lots0logs commented 9 years ago

Compression is not default for BtrFS AFAICS.

Check /etc/fstab, it should be enabled. If its not, post the line for your btrfs partition here. Thanks.

karasu commented 9 years ago

I'll close this as we think all this is os-prober fault. :laughing: @kragil : About BTRFS not being compressed by default, open a new issue if you can confirm this is truly happening.

jscholfield commented 9 years ago

For UEFI systems /boot (the EFI System Partition) must be FAT32. UEFI can't load anything not on FAT32. When using FAT32 and when there is only one OS, there is no need to use a bootloader. UEFI can directly load a linux kernel with EFISTUB enabled. That is enabled by default on Arch kernels.

I assume it is understood that the mount point for the UEFI ESP, typically /boot or /boot/efi, determines on what partition the kernel resides. It is on the ESP if /boot is used and it is on the root partition if /boot/efi is used. The installer should not use the /boot mount point if another linux kernel exists that uses the same name for the kernel. Typically this can happen between parent and child distros. EFISTUB capability for the UEFI to load the kernel can only be done when the kernel resides on the ESP. Sorry if this got loopy.

jscholfield commented 9 years ago

I would add that all, or nearly all, new systems use UEFI so recommending ext2 for /boot may be an issue since it makes sense for fewer and fewer users.