"dpkg-reconfigure --all" invokes update-initramfs(8) multiple times

Bug #184852 reported by Daniel Richard G.
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: initramfs-tools

On a minimal text-mode-only install of Gutsy (i.e. ubuntu-minimal + ubuntu-standard), "dpkg-reconfigure --all" causes update-initramfs(8) to be invoked no less than 10 times. Moreover, this was running on a fairly old (Pentium II) system, and so significantly slowed down the reconfiguration process (as each initrd update took ~2 minutes).

Initrd updates should be deferred in a situation like this, so that update-initramfs(8) is invoked only once at the end of the reconfiguration process.

Revision history for this message
Timothy Smith (tas50) wrote :

This bug is still present in the most recent nightly builds of Ubuntu

Revision history for this message
Jeremy Jackson (jerj) wrote :

This is being addressed by the Blueprint

https://blueprints.launchpad.net/ubuntu/+spec/dpkg-triggers

Some pkgs in Gutsy are converted to use trigger for update-initramfs, but others aren't. I have opened a bug for one of the packages that still needs conversion:

https://bugs.launchpad.net/bugs/198848

Once I see how that's handled, I'll open bug reports for the remaining pkgs that I found.

Revision history for this message
Daniel Richard G. (skunk) wrote :
Download full text (5.2 KiB)

Bug persists in Hardy.

In an ubuntu-minimal install, "dpkg-reconfigure --all" invokes update-initramfs(8) six times, with the first three instances seemingly occurring one right after the other.

root@darkstar:~# dpkg-reconfigure --all
 * Stopping ACPI services... [ OK ]
 * Loading ACPI modules... [ OK ]
 * Starting ACPI services... [ OK ]
 * Setting up console font and keymap... Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 211.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 227.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 228.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 288.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 329.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 346.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 347.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 288.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 329.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 346.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 347.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 211.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 227.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 228.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 288.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 329.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 346.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 347.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 288.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 329.
Use of uninitialized value in scalar assignment at /usr/share/perl/5.8/utf8_heavy.pl line 346.
Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8/utf8_heavy.pl line 347.
                                                                         [ OK ]
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
 * Stopping kernel log daemon... [ OK ]
 * Starting kernel log daemon... [ OK ]
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
Not updating init...

Read more...

Daniel T Chen (crimsun)
Changed in initramfs-tools:
importance: Undecided → Wishlist
Revision history for this message
maximilian attems (maks-debian) wrote :

Since then update-initramfs are triggered thus happen far less often.

Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
Revision history for this message
midenok (midenok) wrote :

This very annoying bug still persists in natty.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.