Comment 9 for bug 1496163

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Andy, I spotted the problem:

Line 120 in /usr/share/initramfs-tools/hook-functions:

    cp -a "$firmware" "$target_dir"

`cp -a` copies the symlink itself rather than the target it points to, so we end up with a broken symlink in initramfs and no actual firmware file.

The fix that comes to mind for me is:

  cp -aL "$firmware" "$target_dir"

But I'm not sure if that would have consequences elsewhere. Are symlinks utilized anywhere in the initramfs?