config script thinks grub.d contains all variables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Low
|
Colin Watson |
Bug Description
TL;DR: grub maintainer scripts endup writing an empty linux_cmdline if /etc/default/
At least grub-pc's config script thinks that the presence of /etc/default/
The config script will - when present - try to read deafult/grub and grub.d/* and then carry the read values into the new deafult/grub. It does however not check whether the read values are null/nil/undefined such that it ends up writing an empty cmdline into default/grub by default.
--- code ----
for x in /etc/default/grub /etc/default/
if [ -e "$x" ]; then
DEFAULT_
. "$x"
fi
done
if [ "$DEFAULT_FOUND" = "yes" ]; then
db_set grub2/linux_cmdline "$GRUB_
db_set grub2/linux_
--- code ----
In combination with an issue in ubiquity/d-i which also prevents a default cmdline by default. Put together these issues cause bug 1171099 (no plymouth after installation in kubuntu).
Related branches
Changed in grub2 (Ubuntu): | |
assignee: | nobody → Colin Watson (cjwatson) |
status: | Triaged → Fix Committed |
This bug was fixed in the package grub2 - 2.00-15ubuntu1
---------------
grub2 (2.00-15ubuntu1) saucy; urgency=low
[ Colin Watson ]
* Resynchronise with Debian. Remaining changes:
- Default to hiding the menu; holding down Shift at boot will show it.
- Add crashkernel option.
- Bypass menu unless other OSes are installed or Shift is pressed.
- Allow Shift to interrupt 'sleep --interruptible'.
- Reduce visual clutter in normal mode.
- Remove verbose messages printed before reading configuration.
- Suppress kernel/initrd progress messages, except in recovery mode.
- Show the boot menu if the previous boot failed.
- Suppress "GRUB loading" message unless Shift is held down.
- Check hardware support before using gfxpayload=keep.
- Set vt.handoff=7 for smooth handoff to kernel graphical mode.
- In recovery mode, add nomodeset to the Linux kernel arguments, and
remove the 'set gfxpayload=keep' command.
- Skip Windows os-prober entries on Wubi systems, and suppress the menu
by default if those are the only other-OS entries.
- Handle probing striped DM-RAID devices.
- Disable cursor as early as possible in grub_main.
- Treat Kubuntu as an alias for Ubuntu in GRUB_DISTRIBUTOR.
[ Harald Sitter ] ubuntu_ distributor. patch to handle Kubuntu like Ubuntu;
* Update mkconfig_
no GNU/Linux suffix.
grub2 (2.00-15) unstable; urgency=low
[ Colin Watson ] postinst explicitly install with mipsel- loongson (closes: #708204). default/ grub.d/ *.cfg means that any particular item is set in it
* Install reportbug presubj and script files in all binary packages.
* Make grub-yeeloong.
--target=
* Make grub-script-check fail on scripts containing no commands (closes:
#713886).
* Make the description of grub-firmware-qemu a little more generic, rather
than assuming that bochsbios provides qemu's default BIOS image (closes:
#714277).
* Don't assume that the presence of /etc/default/grub or
/etc/
(LP: #1199731).
[ Debconf translations ]
* Hungarian (Dr. Nagy Elemér Károly).
-- Colin Watson <email address hidden> Sat, 13 Jul 2013 17:08:01 +0100