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
Creating UEFI Bootable USB stick hangs while reading /proc/mounts #2095
Comments
Perhaps commit |
On my openSUSE Leap 15.0 system the current code seems to work:
|
strange enough those steps work if executed from bash directly:
|
@abbbi |
Same issue with debian buster, rear 2.4 /Git
|
I wish I could explain better but this have something to do with almighty if you do:
hence you get exact same behavior as seen in ReaR. If you use double quotes (") for $esp_mount_point variable problem is solved:
So if you update your current /usr/share/rear/prep/default/320_include_uefi_env.sh with something like this:
this problem should be solved. Maybe @jsmeix can explain why is I can prepare PR for this small problem if needed, but since I'm nowadays a bit short on time, I'm not sure when it will be ready ... Hope it helps. V. |
Interestingly enough as @jsmeix pointed out in #2095 (comment), my example from #2095 (comment) works fine on SLE15
Best guess I can make right now are different So maybe different implementation ??? V. |
Hello @gozora: Thanks, your workaround worked.
After that I found another dependency issue: efibootmgr was missing.
After reinstall backup went ok. |
I overhauled that code part via @gozora @shortydle |
@jsmeix: tested OK with https://raw.githubusercontent.com/rear/rear/11045023e916995eb403aca6053f9b5ef98930dc/usr/share/rear/prep/default/320_include_uefi_env.sh debug output :
|
…nclude_uefi_env_sh_issue2095 Simplify awk constructs in 320_include_uefi_env.sh into using plain grep and a bash array to avoid inexplicable wrong behaviour in some cases that is somehow related to the nullglob bash option together with different kind of awk, see #2095
@shortydle With #2115 merged |
Relax-and-Recover (ReaR) Issue Template
2.4 Git.
Debian buster
UEFI bios
Storage (lokal disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):
USB Stick
Trying to create the USB boot image with UEFI option enabled somehow ends up in hanging while trying to read /proc/mounts via awk, last lines of log:
The text was updated successfully, but these errors were encountered: