You are not logged in.
Pages: 1
Hello, I was trying to understand where the command that shows the progress during the extraction of rootfs.gz resides.
I've tried to build a live which works regularly, except at boot time it doesn't show me the classic progress at the point "tryng to unpack rootfs image as initramfs".
It seems to be stuck, in reality it is unpacking. Which after a short time continues to boot normally.
I also noticed that on different versions of slitaz this progress is not always the same: like one dot corresponds to twice the value of another slitaz version (less dots, but more time between dots).
Where can I act to have it visible on a personal live?
-------------------------------------------------------------------------
Salve, cercavo di capire dove risiede il comando che mostra l'avanzamento durante l'estrazione del rootfs.gz.
Ho provato a costruirmi una live che funziona regolarmente, salvo al boot non mi mostra l'avanzamento classico al punto “tryng to unpack rootfs image as initramfs”
Sembra sia bloccata, in realtà sta scompattando. Cosa che dopo un breve tempo prosegue normalmente con il boot.
Ho notato pure che su versioni differenti di slitaz questo avanzamento non è sempre uguale: tipo un puntino corrisponde al doppio del valore di un'altra versione slitaz (meno puntini, ma più tempo fra uno e l'altro).
Dove posso agire per averlo visibile su di una live personale?
Offline
SliTaz kernels are patch to show it:
https://hg.slitaz.org/wok/file/8bed0ad1f0db/linux/stuff/linux-freeinitrd.u#l33
https://hg.slitaz.org/wok/file/8bed0ad1f0db/linux/receipt#l227
Offline
Thanks Bellard! Now I know where to try to modify...but it looks tough for me. The kernel is different and the patch as is is no good.
Grazie Bellard! Ora so dove provare a modificare... ma la vedo dura per me. Il kernel è differente e la patch così com'è non va bene.
patch -p1 < ../linux-freeinitrd.u
patching file init/initramfs.c
Hunk #1 FAILED at 384.
Hunk #2 succeeded at 447 (offset 20 lines).
Hunk #3 succeeded at 461 (offset 20 lines).
Hunk #4 FAILED at 463.
Hunk #5 FAILED at 505.
Hunk #6 FAILED at 533.
4 out of 6 hunks FAILED -- saving rejects to file init/initramfs.c.rej
Offline
I ask if possible a help to modify the patch for this version of the kernel
https://elixir.bootlin.com/linux/v5.8.3/source/init/initramfs.c
I'm already stuck at the lines
- res = decompress(buf, len, NULL, flush_buffer, NULL,
where I find instead
int res = decompress(buf, len, NULL, flush_buffer, NULL,
which should be replaced with
+ if (early_free_initrd) {
+ res = decompress(NULL, 0, fill_buffer,
+ flush_buffer, NULL, &my_inptr, error);
+ my_inptr += fill.inptr;
+ }
+ else res = decompress(buf, len, NULL, flush_buffer, NULL,
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]