Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UEFI /boot is case sensitive but the /EFI part should be case insensitive #1223

Closed
ProBackup-nl opened this issue Mar 8, 2017 · 18 comments
Closed
Assignees
Labels
enhancement Adaptions and new features fixed / solved / done minor bug An alternative or workaround exists
Milestone

Comments

@ProBackup-nl
Copy link
Contributor

ProBackup-nl commented Mar 8, 2017

Checking /boot/efi directory is done case sensitive, f.e. in usr/share/rear/prep/default/320_include_uefi_env.sh

However /boot/EFI (upper caps EFI) is also a valid directory.

The /EFI part is on a FAT file system. The FAT file system is case insensitive.

Therefore all checks for /EFI and deeper should be done case insensitive.

I will make some improvements.

@schlomo
Copy link
Member

schlomo commented Mar 8, 2017

+1 good catch!

@gozora
Copy link
Member

gozora commented Mar 9, 2017

With #1225 merged, I guess this can be closed.

@gozora gozora closed this as completed Mar 9, 2017
@ProBackup-nl
Copy link
Contributor Author

@gozora I am not so sure whether I caught all locations that reference /boot/efi. There might be some more files that needs adjustments for this issue.

@gozora
Copy link
Member

gozora commented Mar 9, 2017

Ok, reopening this issue again ...

@gozora gozora reopened this Mar 9, 2017
@gdha gdha added enhancement Adaptions and new features minor bug An alternative or workaround exists labels Mar 10, 2017
@gdha gdha added this to the Rear v2.1 milestone Mar 10, 2017
@gdha
Copy link
Member

gdha commented Mar 14, 2017

@ProBackup-nl The code breaks all non-UEFI systems now with:

ERROR: Cannot find required programs: dosfsck efibootmgr

@jsmeix
Copy link
Member

jsmeix commented Mar 15, 2017

@gdha
I fail to see what in
https://github.com/rear/rear/pull/1225/files
could make that

ERROR: Cannot find required programs: dosfsck efibootmgr

I guess it is another merged pull request that makes it fail?

@jsmeix
Copy link
Member

jsmeix commented Mar 15, 2017

@gdha
please ignore my above comment - meanwhile even I found your
#1225 (comment)

@jsmeix
Copy link
Member

jsmeix commented Mar 15, 2017

For reference: Also see
#1239

@ProBackup-nl
Copy link
Contributor Author

230_run_efibootmgr.sh need a case sensitive fix too at lines:

[[ -d "$TARGET_FS_ROOT/boot/efi" ]]

BootEfiDev="$( mount | grep "boot/efi" | awk '{print $1}' )"

@jsmeix
Copy link
Member

jsmeix commented Jul 14, 2017

@gozora
could you have a look if this issue could be solved for ReaR v 2.2
or if it should be postponed to ReaR v 2.3 cf.
#1398 (comment)

@gozora
Copy link
Member

gozora commented Jul 14, 2017

Hello @jsmeix,

I guess this one can wait until v2.3 ...

V.

@gdha gdha modified the milestones: ReaR v2.3, ReaR v2.2 Jul 19, 2017
@gdha
Copy link
Member

gdha commented Jul 19, 2017

post-pone to release 2.3

@gdha
Copy link
Member

gdha commented Dec 11, 2017

The missing efibootmgr issue was addressed by RedHat as well and is known as "RHBA-2017:2937"
@jsmeix @gozora Can we close this one?

@jsmeix
Copy link
Member

jsmeix commented Dec 11, 2017

I cannot decide if it can be closed because
for me things work on SUSE systems.

@gdha
was the Red Hat fix for "RHBA-2017:2937"
https://access.redhat.com/errata/RHBA-2017:2937
https://bugzilla.redhat.com/show_bug.cgi?id=1492561
https://bugzilla.redhat.com/show_bug.cgi?id=1479002
backported into ReaR master code?
Or is it fixed different in ReaR master code because the current
usr/share/rear/prep/default/330_include_uefi_tools.sh
does not match the proposed fix in
https://bugzilla.redhat.com/show_bug.cgi?id=1479002#c0

@gdha
Copy link
Member

gdha commented Dec 11, 2017

Script usr/share/rear/prep/default/320_include_uefi_env.sh does it similar (improved by @gozora and @jsmeix):

# next step, check filesystem partition type (vfat?)
esp_mount_point='/\/boot\/efi/'
UEFI_FS_TYPE=$(awk $esp_mount_point' { print $3 }' /proc/mounts)

@gozora
Copy link
Member

gozora commented Dec 11, 2017

@gdha For me UEFI boot currently works sufficiently well.
I say "sufficiently" because current code can't reliably catch all configuration possibilities of UEFI bootable system, but I did not see or face for some time issues related to booting of ReaR rescue system in UEFI mode.

V.

@gdha
Copy link
Member

gdha commented Dec 11, 2017

Based on the comments above we can mark this one as 'solved'. It can always be re-opened if required.
Thanks all for your commitment and time!

@jsmeix
Copy link
Member

jsmeix commented Dec 12, 2017

Before it could be re-opened, it must have been closed ;-)

@jsmeix jsmeix closed this as completed Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adaptions and new features fixed / solved / done minor bug An alternative or workaround exists
Projects
None yet
Development

No branches or pull requests

5 participants