Bug 16246 - draklive-install crashed (grub2-install: error: /boot/EFI doesn't look like an EFI partition)
Summary: draklive-install crashed (grub2-install: error: /boot/EFI doesn't look like a...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-06-29 15:49 CEST by Paul Blackburn
Modified: 2018-04-19 16:31 CEST (History)
3 users (show)

See Also:
Source RPM: draklive-install-2.6-1.mga5
CVE:
Status comment:


Attachments
stricter check for ESP (untested) (1.01 KB, patch)
2015-06-30 10:14 CEST, Thierry Vignaud
Details | Diff
check fs type too (untested) (877 bytes, patch)
2015-06-30 10:16 CEST, Thierry Vignaud
Details | Diff

Description Paul Blackburn 2015-06-29 15:49:49 CEST
The "draklive-install" program crashed. Drakbug-16.104 caught it.

Installing Mageia 5 KDE LiveDVD on blank brand new disk

grub2-install failed: Installing for x86_64-efi platform.
grub2-install: error: /boot/EFI doesn't look like an EFI partition.
.
	...propagated at /usr/lib/libDrakX/any.pm line 268.
Perl's trace:
drakbug::bug_handler() called from /usr/lib/libDrakX/any.pm:268
any::installBootloader() called from /usr/lib/libDrakX/any.pm:238
any::setupBootloaderUntilInstalled() called from /usr/sbin/draklive-install:332
main::setup_bootloader() called from /usr/sbin/draklive-install:70
main::install_live() called from /usr/sbin/draklive-install:42

Theme name: oxygen-gtk
Kernel version = 3.19.8-desktop-3.mga5
Distribution=Mageia release 5 (Official) for x86_64
CPU=Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz



Was installing Mageia 5 KDE LiveDVD on blank brand new disk.

[live@localhost ~]$ df
Filesystem              Size  Used Avail Use% Mounted on
devtmpfs                7.6G     0  7.6G   0% /dev
tmpfs                   7.6G  1.5M  7.6G   1% /dev/shm
tmpfs                   7.6G  928K  7.6G   1% /run
/dev/loop0              1.7G  1.7G     0 100% /run/mgalive/ovlsize
overlay                 7.6G  233M  7.4G   3% /
tmpfs                   7.6G     0  7.6G   0% /sys/fs/cgroup
tmpfs                   7.6G   16K  7.6G   1% /tmp
tmpfs                   1.6G   12K  1.6G   1% /run/user/1000
/dev/mapper/crypt_sda4   20G  7.1G   12G  38% /mnt/install
/dev/sda2               243M   24M  203M  11% /mnt/install/boot
/dev/sda1               299M  2.0M  298M   1% /mnt/install/boot/EFI
/dev/sda6               9.8G   23M  9.2G   1% /mnt/install/mnt/install-iso
/dev/mapper/crypt_sda5  2.0G  3.1M  1.9G   1% /mnt/install/usr/local
/dev/mapper/crypt_sda7  395G   71M  395G   1% /mnt/install/home

live@localhost ~]$ mount | grep EFI
/dev/sda1 on /mnt/install/boot/EFI type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
Comment 1 Paul Blackburn 2015-06-29 16:15:04 CEST
retrying install after reading again through: https://wiki.mageia.org/en/Installing_on_systems_with_UEFI_firmware

I configured /boot/EFI as an NTFS and I see it should be a FAT32.
Comment 2 Paul Blackburn 2015-06-29 16:21:28 CEST
I did not find FAT32 on list of partition types in the installer's partitioning but I did find "EFI System Partition" so tried that.
Comment 3 Paul Blackburn 2015-06-29 16:32:58 CEST
OK, so I completed the install from KDE liveDVD with no errors.
Unfortunately, it's not booting from disk.

Hardware is HP zBook 15.
Comment 4 Samuel Verschelde 2015-06-30 09:33:20 CEST
Assigning to maintainer.

CC: (none) => thierry.vignaud, tmb
Assignee: bugsquad => mageia

Comment 5 Thierry Vignaud 2015-06-30 09:37:28 CEST
So you'd manually created /boot/EFI as NTFS?
Then this is not a bug
Also note that you don't have to create a ESP, the installer will either reuse existing one or create one.

Keywords: (none) => NEEDINFO
Status: NEW => RESOLVED
Resolution: (none) => INVALID
Summary: draklive-install crashed => draklive-install crashed (grub2-install: error: /boot/EFI doesn't look like an EFI partition)

Comment 6 Samuel Verschelde 2015-06-30 09:38:48 CEST
There's still a bug: draklive-install crashing.

Status: RESOLVED => REOPENED
Resolution: INVALID => (none)

Comment 7 Thierry Vignaud 2015-06-30 10:14:32 CEST
That's not really a bug.
There's quite a lot of ways one can shoot her/himself in the foot.
You can also set NTFS for /home and you'll have issues with multiuser, ...
Or for some system directory where some program will do chmod or chown that'll now fail in new ways...

Though I guess we can add a check forcing /boot/EFI to be vfat and nothing else.
Comment 8 Thierry Vignaud 2015-06-30 10:14:54 CEST
Created attachment 6790 [details]
stricter check for ESP (untested)
Comment 9 Thierry Vignaud 2015-06-30 10:16:34 CEST
Created attachment 6791 [details]
check fs type too (untested)
Thierry Vignaud 2015-06-30 10:16:51 CEST

Keywords: NEEDINFO => PATCH

Comment 10 Paul Blackburn 2015-06-30 10:47:10 CEST
Checking for the right filesystem type for /boot/EFI and allowing the opportunity to correct during install would help reduce simple user errors like mine.
Thierry Vignaud 2015-07-31 09:58:49 CEST

Assignee: mageia => thierry.vignaud

Comment 11 Mageia Robot 2016-02-10 23:23:32 CET
commit 6945251db17abf6e8cf2946ec15af5739170b43f
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Tue Jun 30 04:15:44 2015 -0400

    (isESP) check fs too (mga#16246)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=6945251db17abf6e8cf2946ec15af5739170b43f
Comment 12 Mageia Robot 2016-02-10 23:23:35 CET
commit c36f5bc526c4f46acce03a5061e7a0e26a867337
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Tue Jun 30 04:13:15 2015 -0400

    check that ESP mount point actually is an ESP
    
    fixing grub2 faillure resulting in draklive-install crash (mga#16246)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=c36f5bc526c4f46acce03a5061e7a0e26a867337
Comment 13 Marja Van Waes 2018-04-19 16:31:11 CEST
(In reply to Mageia Robot from comment #11)
> commit 6945251db17abf6e8cf2946ec15af5739170b43f
> Author: Thierry Vignaud <thierry.vignaud@...>
> Date:   Tue Jun 30 04:15:44 2015 -0400
> 
>     (isESP) check fs too (mga#16246)
> ---
>  Commit Link:
>   
> http://gitweb.mageia.org/software/drakx/commit/
> ?id=6945251db17abf6e8cf2946ec15af5739170b43f

(In reply to Mageia Robot from comment #12)
> commit c36f5bc526c4f46acce03a5061e7a0e26a867337
> Author: Thierry Vignaud <thierry.vignaud@...>
> Date:   Tue Jun 30 04:13:15 2015 -0400
> 
>     check that ESP mount point actually is an ESP
>     
>     fixing grub2 faillure resulting in draklive-install crash (mga#16246)
> ---
>  Commit Link:
>   
> http://gitweb.mageia.org/software/drakx/commit/
> ?id=c36f5bc526c4f46acce03a5061e7a0e26a867337

So closing as fixed

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED
CC: (none) => marja11


Note You need to log in before you can comment on or make changes to this bug.