Public bug reported:
Speaking about this line in unmkinitramfs:
113: dd < "$initramfs" skip=$start count=$((end - start))
iflag=skip_bytes 2> /dev/null |
dd's block size is 512 by default. iflag=skip_bytes does not change that. Both
$end and $start are byte-offsets. Hence the count is ($en
Just found out, aside for skip_bytes iflag, there is also count_bytes
one. So another fix count be:
113: dd < "$initramfs" skip=$start count=$((end - start))
iflag=skip_bytes,count_bytes 2> /dev/null |
** Description changed:
Speaking about this line in unmkinitramfs:
- 113: dd < "$
> The count_bytes solution looks better to me
The updated patch is attached.
I've just checked: all the *_bytes flags were introduced to dd in the
same commit
https://github.com/coreutils/coreutils/commit/140eca15c4a3d3213629a048cc307fde0d094738,
so it is safe to throw in count_bytes in the mix.
https://salsa.debian.org/kernel-team/initramfs-tools/-/merge_requests/92
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/2055055
Title:
unmkinitramfs: wrong and unn
Public bug reported:
Since 23.10 the initrd consists of 4 embedded cpio:
- amd microcode
- intel microcode
- firmware + kernel modules
- rest (compressed)
Previously it was:
- amd microcode
- intel microcode
- rest (compressed)
There is no archive size header for cpio, so unmkinitramfs has to pa
> I have implemented the listing of uncompressed cpio archives (roughly
120 lines of code). Now I have to add the decompression support
Finding offsets of the embedded archives is the only time consuming part
of the whole script. Mby it is better to create a separate tool, say
"scaninitramfs", to
> I'll change unmkinitramfs to use 3cpio in case it is installed.
It does not solve the problem reported in this bug. How would one know
unmkinitramfs is dead slow because 3cpio is not installed? Mby you
should make initramfs-tools-core depend on rust-threecpio?
--
You received this bug notifica
7 matches
Mail list logo