[Bug 1891131] Re: Invalid config generated when using GRUB_EARLY_INITRD_LINUX_CUSTOM
Patric
1891131 at bugs.launchpad.net
Fri Aug 21 10:26:46 UTC 2020
*** This bug is a duplicate of bug 1878705 ***
https://bugs.launchpad.net/bugs/1878705
Patch does not work as expected.
Before the loop
initrd_path="" <-- Needs to be cleared before the loop.
for i in ${initrd}; do
initrd_path="${initrd_path} ${rel_dirname}/${i}"
done
If this is not done it will append the same data over and over to this variable creating duplicates for subsequent boot-entries..
Ie
initrd /acpi_override /initrd.img-5.8.0 /acpi_override /initrd.img-5.8.0 /acpi_override /initrd.img-5.8.0 /acpi_override /initrd.img-5.8.0-rc7 /acpi_override /initrd.img-5.8.0-rc7 /acpi_override /initrd.img-5.4.0-42-generic /acpi_override /initrd.img-5.4.0-42-generic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1891131
Title:
Invalid config generated when using GRUB_EARLY_INITRD_LINUX_CUSTOM
Status in grub2 package in Ubuntu:
Fix Released
Bug description:
When trying to add GRUB_EARLY_INITRD_LINUX_CUSTOM options in
/etc/default/grub the resulting grub.cfg become invalid
For example by adding
GRUB_EARLY_INITRD_LINUX_CUSTOM="acpi_override"
Result:
```
initrd /boot/ acpi_override initrd.img-5.8.0-050800-generic
```
Expected:
```
initrd /boot/acpi_override /boot/initrd.img-5.8.0-050800-generic
```
When comparing 10_linux script with other distro (Manjaro) it seems
that the Ubuntu version doesn't account for multiple initrd
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: grub-common 2.04-1ubuntu26.2
Uname: Linux 5.8.0-050800-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.6
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Aug 11 13:18:18 2020
InstallationDate: Installed on 2020-08-09 (1 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1891131/+subscriptions
More information about the foundations-bugs
mailing list