[Bug 220094] Re: initramfs-tools trigger fails if modules aren't installed
Tristan Schmelcher
tristan_schmelcher at alumni.uwaterloo.ca
Wed Apr 25 23:41:02 UTC 2012
I also experienced this issue (in Lucid) with a kernel whose package had
since been removed. I found by strace'ing update-initramfs that it gets
the kernel list from the contents of /var/lib/initramfs-tools/. There's
one entry there per kernel. Deleting the one for my removed kernel fixed
the problem.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/220094
Title:
initramfs-tools trigger fails if modules aren't installed
Status in tools for generating an initramfs:
New
Status in “initramfs-tools” package in Ubuntu:
Confirmed
Bug description:
I upgraded a system from gutsy to hardy. Before starting the do-
release-upgrade -d, I removed all the kernel and modules packages that
were installed under gutsy (I use my own kernel, because 2.6.24 has
kernel bug 10118, and I was running out of disk space on /boot).
During the "setting up" stage, I hit problems: apt refused to do
anything further and told me to run dpkg --configure -a. but dpkg
--configure -a failed because the initramfs-tools trigger couldn't
find the appropriate /lib/modules directory.
I eventually found a workaround:
rm /var/lib/dpkg/triggers/initramfs-tools
If initramfs-tools can't install without kernel modules installed,
shouldn't it have a dependency on some modules package? Or, better
still, maybe have the initramfs-tools trigger exit gracefully if it
doesn't see any modules.
To manage notifications about this bug go to:
https://bugs.launchpad.net/initramfs-tools/+bug/220094/+subscriptions
More information about the foundations-bugs
mailing list