[Touch-packages] [Bug 2055055] [NEW] unmkinitramfs: wrong and unneeded count= in a dd call

2024-02-26 Thread Adam Vodopjan
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

[Touch-packages] [Bug 2055055] Re: unmkinitramfs: wrong and unneeded count= in a dd call

2024-02-26 Thread Adam Vodopjan
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 < "$

[Touch-packages] [Bug 2055055] Re: unmkinitramfs: wrong and unneeded count= in a dd call

2024-02-27 Thread Adam Vodopjan
> 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.

[Touch-packages] [Bug 2055055] Re: unmkinitramfs: wrong and unneeded count= in a dd call

2024-02-27 Thread Adam Vodopjan
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

[Touch-packages] [Bug 2059976] [NEW] unmkinitramfs is very slow on initrd from ubuntu 23.10+, solution proposed

2024-04-01 Thread Adam Vodopjan
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

[Touch-packages] [Bug 2059976] Re: unmkinitramfs is very slow on initrd from ubuntu 23.10+, solution proposed

2024-04-08 Thread Adam Vodopjan
> 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

[Touch-packages] [Bug 2059976] Re: unmkinitramfs is very slow on initrd from ubuntu 23.10+, solution proposed

2024-08-09 Thread Adam Vodopjan
> 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