| Summary: | sys-kernel/genkernel-next-68 fails to create grub.conf in gen_bootlader.sh when fstab is tab delimited. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Donald R. Gray Jr <donald.r.gray> |
| Component: | Current packages | Assignee: | Ettore Di Giacinto (RETIRED) <mudler> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | lssndrbarbieri |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
patch to change cut to awk.
gen_bootloader_awk_fstab_v2.diff |
||
Created attachment 552172 [details, diff]
patch to change cut to awk.
Patches cleanly on my local install.
Error output: awk: fatal: cannot open file `/var/tmp/genkernel/19937.521.11369.21055/grub.map' for reading (No such file or directory) /usr/share/genkernel/gen_bootloader.sh: line 75: UUID="1b0b578b-a164-41b2-8c1c-61f1a37eecd6" - 1: syntax error: operand expected (error token is ""1b0b578b-a164-41b2-8c1c-61f1a37eecd6" - 1") Created attachment 553522 [details, diff]
gen_bootloader_awk_fstab_v2.diff
Previous path was selecting the mountpoint, not the filesystem type.
Ping? Package removed. |
The offending code is the script is expecting fstab to be space delimited: GRUB_BOOTFS=$(set_bootloader_read_fstab | cut -d' ' -f2) Using awk will work for both space and tab delimited fstab entries: GRUB_BOOTFS=$(set_bootloader_read_fstab | awk '{print $2}') Reproducible: Always Steps to Reproduce: 1.genkernel all with a new kernel and tab delimited fstab. 2. 3.