cleanup script copy update

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
abelM
White ninja
White ninja
Posts: 28
Joined: 22 Oct 2017, 12:35
Distribution: Porteus v-3.2.2 64 bit
Location: Argentina
Contact:

cleanup script copy update

Post#31 by abelM » 06 Nov 2017, 16:42

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,

User avatar
Ed_P
Contributor
Contributor
Posts: 3316
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

cleanup script copy update

Post#32 by Ed_P » 06 Nov 2017, 16:55

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. :)
Ed

User avatar
abelM
White ninja
White ninja
Posts: 28
Joined: 22 Oct 2017, 12:35
Distribution: Porteus v-3.2.2 64 bit
Location: Argentina
Contact:

cleanup script copy update

Post#33 by abelM » 06 Nov 2017, 20:58

Hi Ed, I suposed so :roll: Now I hope brokenman will upload both files -- ISO and initrd.xz -- so we can test them ;)

M. Eerie
White ninja
White ninja
Posts: 26
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

cleanup script copy update

Post#34 by M. Eerie » 07 Nov 2017, 16:43

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

User avatar
abelM
White ninja
White ninja
Posts: 28
Joined: 22 Oct 2017, 12:35
Distribution: Porteus v-3.2.2 64 bit
Location: Argentina
Contact:

cleanup script copy update

Post#35 by abelM » 07 Nov 2017, 19:18

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 5557
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

cleanup script copy update

Post#36 by brokenman » 12 Nov 2017, 19:26

I'll do my best to upload a new version tonight.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply