Comment 31 for bug 1194370

Revision history for this message
Henrique de Moraes Holschuh (hmh) wrote : Re: [Bug 1194370] Re: intel_microcode: prepend_earlyinitramfs: not found

On Fri, 28 Feb 2014, zupert wrote:
> I made the error disappear with following command - thanks to #13
>
> sudo ln -s /usr/share/initramfs-tools/hooks/intel_microcode /usr/share
> /initramfs-tools/hooks/intel-microcode

This can be very dangerous. Don't do it.

Some of the stuff in initramfs-tools is REALLY allergic to "-", and it can
break the initramfs in such a way that it will crash the next boot, and that
will be a *real* pain to fix if you don't have a backup initramfs that works
already installed in the system.

Also, you just caused the hook to be processed twice... once with a safe
name, and once with an usafe name.

When you notice something that looks like a character substitution bug
involving stuff that has special meanings like "-", "+", "=", space, tab,
".", etc., at least consider it might be there on purpose and read the
package changelog looking for hints:

intel-microcode (1.20120606.v2.2) unstable; urgency=medium

  * initramfs: work around initramfs-tools bug #688794.
    Use "_" in place of "+-." for the initramfs script name. This works
    around a PANIC during boot when the initramfs was created in a system
    with noexec $TMPDIR.

 -- Henrique de Moraes Holschuh <email address hidden> Tue, 09 Oct 2012 07:43:37
-0300

--
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh