Page 3 of 3

cleanup script copy update

Posted: 06 Nov 2017, 16:42
by abelM
Thank you brokenman!

Could we download just the initrd.xz instead of the whole ISO file? Anyway I don't know if someone makes Porteus load the ISO at boot time

Best regards,

cleanup script copy update

Posted: 06 Nov 2017, 16:55
by Ed_P
Hi
abelM wrote:
06 Nov 2017, 16:42
I don't know if someone makes Porteus load the ISO at boot time
Hi abelM my name is Ed_P and I boot ISOs, especially Porteus ISOs. :)

cleanup script copy update

Posted: 06 Nov 2017, 20:58
by abelM
Hi Ed, I suposed so :roll: Now I hope brokenman will upload both files -- ISO and initrd.xz -- so we can test them ;)

cleanup script copy update

Posted: 07 Nov 2017, 16:43
by M. Eerie
Hi abelM , your initrd.xz is located inside your /boot/syslinux folder in your Porteus media. You can uncompress and compress yourself from the terminal like @brokenman explains here -->

https://forum.porteus.org/viewtopic.php?p=53718#p53718

Also, you can have a look at this article --> http://www.porteus.org/component/conten ... ernel.html

Once uncompressed, you can replace all ocurrences of cp -af to cp -afu in the tree like this -->

Code: Select all

find . -type f -print0 | xargs -0 sed -i 's/cp -af/cp -afu/g'
Then pack it again and give it a try :)

BTW: I found the article in this very forum on how to unpack/repack the initrd.xz by googleing

cleanup script copy update

Posted: 07 Nov 2017, 19:18
by abelM
Thanks M. Eerie!

Interesting tip indeed. However the new initrd.xz includes an updated version of busybox which does support cp -u. The cleanup script should also be modified I think. That's why I've asked brokenman for the initrd.xz -- and Ed for the iso file. Editing cleanup and repacking the present initrd.xz won't be effective and worse: cp will copy nothing and exit with an error message. Just to see please try

Code: Select all

/mnt/live/bin/cp -afu SOURCE DEST
Regards

cleanup script copy update

Posted: 12 Nov 2017, 19:26
by brokenman
I'll do my best to upload a new version tonight.