Bug#717805: initramfs-tools: lsinitramfs doesn't understand early microcode images
Brett, your patch (and Olivier, your revised one) don't seem to work for me
anymore. By trial and error experimentation (wild guessing), I find that
the "magic number" is no longer 8, but 4, for the two initial RAM file systems
that I currently possess, both of which have a real_offset value, before
incrementing, of 6796. I note that 6796 divided by 8 yields a quotient of 849
and a remainder of 4. Hmm. Adding 4 brings the value to an integer multiple
of 8. I wonder. Maybe the correct algorithm is
real_offset=$(((real_offset+8)/8*8))
This will bump real_offset to the next higher multiple of 8. Is this correct?
I have no idea. What I do know is that the current algorithm doesn't work for
me, but the above does. For now. Will it continue to work in the future?
I don't know.
--
.''`. Stephen Powell
: :' :
`. `'`
`-
Reply to: