Bug 1636492
| Summary: | failed to write boot loader configuration: ( ../grub-core/script/lexer.c:337:syntax error) | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Damian Wrobel <dwrobel> | ||||||||||||||
| Component: | grub2 | Assignee: | Peter Jones <pjones> | ||||||||||||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||
| Priority: | unspecified | ||||||||||||||||
| Version: | 29 | CC: | anaconda-maint-list, jonathan, kellin, koen.schram, lkundrak, pjones, vanmeeuwen+fedora, vponcova, wwoods | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||||
| Target Release: | --- | ||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||
| OS: | Linux | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||
| Last Closed: | 2018-10-08 06:28:42 UTC | Type: | Bug | ||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||
| Embargoed: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Damian Wrobel
2018-10-05 14:07:26 UTC
Created attachment 1490858 [details]
complete journal log
Created attachment 1490859 [details]
boot/grub2/grub.cfg.new
Created attachment 1490860 [details]
boot/grub2/device.map
Created attachment 1490861 [details]
boot/grub2/grubenv
Created attachment 1490862 [details]
entire etc directory
The offending line seems to be:
set boot_counter=\$((\${boot_counter}-1))
from the etc/grub.d/01_fallback_counting file.
According to the shebang "#!/usr/bin/sh" using $(()) might be problematic. So I've tried to change it using "expr" but that didn't work for me also. Thus, to have bootable system I simple disable this part temporary as following:
$ diff -u 01_fallback_counting.orig 01_fallback_counting
--- 01_fallback_counting.orig 2018-10-05 18:28:35.340154316 +0200
+++ 01_fallback_counting 2018-10-05 18:28:40.231194283 +0200
@@ -6,8 +6,8 @@
if [ "\${boot_counter}" = "0" -o "\${boot_counter}" = "-1" ]; then
set default=1
set boot_counter=-1
- else
- set boot_counter=\$((\${boot_counter}-1))
+# else
+# set boot_counter=\$((\${boot_counter}-1))
fi
save_env boot_counter
fi
After that grub2-mkconfig stopped to complain.
Seems to be fixed by grub2-tools-2.02-62.fc29.x86_64 (which removed the /etc/grub.d/01_fallback_counting problematic file entirely). |