Thanks for the explanation step ... in fact I have never used --auto-kill .
Competition
who can come up with the code which generates a yad progress bar that starts and ends at the same point as the mksquashfs command!
I did a couple, but sometimes the mksquashfs progress races ahead, while the yad (measuring the created .sfs size) moves steadily.
What is mksquashfs progress actually counting? here is my closest effort.
first start mksquashfs fs in one term.
Code: Select all
mksquashfs /mnt/sdc3/lap/stems-apps /mnt/sdc3/lap/stems-app.sfs -comp xz
then in another term
Code: Select all
tot=$(du -k /mnt/sdc3/lap/stems-apps | tail -1 | awk '{print $1}'); while sleep 1; do size=$(du -k /mnt/sdc3/lap/stems-appp.sfs | awk '{print $1}'); perc=$((size * 88 / (tot/4))); echo "$size"; echo $perc; done | yad --progress --percentage=0 --progress-text=""
I could not use --auto-close because 100% is frequently reached as mksquashfs rewrites the .sfs file on disk.