[Bug 957262] Re: update-grub ran before update-initramfs resulting in a menu.lst without an initrd line
Steve Langasek
steve.langasek at canonical.com
Fri Mar 16 19:37:08 UTC 2012
Nevermind about the other files; there's enough info in the term log to
figure this out.
Setting up linux-image-3.2.0-18-generic (3.2.0-18.29) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.2.0-18-generic
Found kernel: /boot/vmlinuz-2.6.32-38-server
Found kernel: /boot/vmlinuz-2.6.32-34-server
Found kernel: /boot/vmlinuz-2.6.32-33-server
Found kernel: /boot/vmlinuz-2.6.32-28-server
Found kernel: /boot/vmlinuz-2.6.32-27-server
Found kernel: /boot/vmlinuz-2.6.32-23-server
Found kernel: /boot/vmlinuz-2.6.32-21-server
Found kernel: /boot/vmlinuz-2.6.31-16-server
Found kernel: /boot/vmlinuz-2.6.28-17-server
Found kernel: /boot/vmlinuz-2.6.27-9-server
Found kernel: /boot/vmlinuz-2.6.24-19-server
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-18-generic /boot/vmlinuz-3.2.0-18-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-18-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-18-generic /boot/vmlinuz-3.2.0-18-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-18-generic /boot/vmlinuz-3.2.0-18-generic
[...]
Setting up plymouth-theme-ubuntu-text (0.8.2-2ubuntu28) ...
update-initramfs: deferring update (trigger activated)
[...]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-18-generic
[...]
Setting up grub (0.97-29ubuntu65) ...
Removing update-grub hooks from /etc/kernel-img.conf in favour of
/etc/kernel/ hooks.
[...]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-18-generic
[...]
So the grub update knows to take care of replacing the /etc/kernel-
img.conf line with a proper /etc/kernel hook, but then nothing ensures
this is called after the kernel upgrade. The kernel postinst calls
update-grub too early, and it's not called again after upgrade.
We should probably just have grub call update-grub in the postinst when
the upgrade handling is triggered.
** Changed in: update-manager (Ubuntu)
Status: New => Triaged
** Changed in: update-manager (Ubuntu)
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/957262
Title:
update-grub ran before update-initramfs resulting in a menu.lst
without an initrd line
Status in “update-manager” package in Ubuntu:
Triaged
Bug description:
I was performing a distribution upgrade from Lucid to Precise and was
unable to boot after the upgrade. Come to find out this was due to my
menu.lst missing an intird line. I had the following:
title Ubuntu precise (development branch), kernel 3.2.0-18-generic
root (hd0,0)
kernel /boot/vmlinuz-3.2.0-18-generic root=/dev/md0 ro quiet splash
quiet
I manually added in the initrd line and was able to boot. I also
reinstalled the linux-image package and the initrd line was created
for the recovery boot option. From what I could see in the apt-
term.log file update-grub was run one time halfway through the upgrade
and update-initramfs was run at the very end. So I'm guessing because
there wasn't an initrd available it wasn't added to menu.lst.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/957262/+subscriptions
More information about the foundations-bugs
mailing list