Search found 50 matches

by abelM
19 Dec 2017, 18:33
Forum: Development
Topic: direct update at dump session
Replies: 13
Views: 649

direct update at dump session

Hi all I'm leaving here the whole dump-session stuff with minor changes. It works exactly the same -I've just removed an unused variable inherited from the original script, renamed another two, and tried to make the code a bit more compact. It keeps compatibility with Busybox 1.27.x so it could even...
by abelM
13 Dec 2017, 15:44
Forum: Development
Topic: cleanup script copy update
Replies: 54
Views: 2177

cleanup script copy update

Hi all!

There's a small fix at direct update at dump session (Post by abelM #61071)

Regards,
by abelM
13 Dec 2017, 15:43
Forum: Development
Topic: direct update at dump session
Replies: 13
Views: 649

direct update at dump session

Hi all, I've fixed vertical bar and written a more concise expression in fixwh function. It keeps Busybox 1.27.1 compatibility.

Code: Select all

fixwh() { sed -e 's_[.?*+|&^$([]_\\&_g' -e 's@^@^@'; }
Regards!
by abelM
04 Dec 2017, 16:43
Forum: Development
Topic: cleanup script copy update
Replies: 54
Views: 2177

cleanup script copy update

That's OK! Another interesting point is saving from union system to persistence without using a temporary folder. The proposed dump-session achieves both goals and cleanup could eventually too. ;)

Regards
by abelM
04 Dec 2017, 16:30
Forum: Development
Topic: direct update at dump session
Replies: 13
Views: 649

direct update at dump session

Great! Please remember this code is compatible with Busybox 1.27.2 so it could be eventually be included in cleanup.

Regards,
by abelM
03 Dec 2017, 19:44
Forum: Development
Topic: cleanup script copy update
Replies: 54
Views: 2177

cleanup script copy update

Hi Ed! You're not alone. I've made the same mistake! :mega_shok: That's why I'm testing new code in dump-session bypassing cleanup save on exit # /etc/rc.d/rc.local_shutdown dump-session && rm -f /mnt/live/tmp/changes-exit BTW I've added a small fix to dump-session you can see at direct update at d...
by abelM
03 Dec 2017, 19:33
Forum: Development
Topic: direct update at dump session
Replies: 13
Views: 649

direct update at dump session

Hi all! I have fixed opening parenthesis in whiteout names. I haven't found stars in filenames -that would be a bad idea- but I think it's better to fix that too. So please change fixwh function in your testing dump-session like this: # Fix whiteout names so `egrep' doesn't interpret special charact...
by abelM
30 Nov 2017, 14:10
Forum: Development
Topic: cleanup script copy update
Replies: 54
Views: 2177

cleanup script copy update

Hi Ed, The same has been for me! I've inspected some places to find out: Contents of my save.dat file as you can see in /mnt/live/memory/images/changes . Files under /mnt/live/memory/changes Folders included and excluded in /etc/changes-exit.conf In my personal system I've realized downloaded files,...
by abelM
29 Nov 2017, 22:47
Forum: Development
Topic: cleanup script copy update
Replies: 54
Views: 2177

cleanup script copy update

I've made some small fixes you can see at direct update at dump session (Post by abelM #60653)

Regards,
by abelM
29 Nov 2017, 22:43
Forum: Development
Topic: direct update at dump session
Replies: 13
Views: 649

direct update at dump session

Hi all! Cached files often use special characters egrep interprets as regex so I've tried to collect and fix them. A couple of characters shouldn't be used in filenames so I didn't include them but it would be easy to if needed. Besides I've writen the code in a little more organized and compact way...
by abelM
27 Nov 2017, 16:11
Forum: Development
Topic: direct update at dump session
Replies: 13
Views: 649

direct update at dump session

Hi all! I've fixed `+' and `?' in some odd filenames #!/bin/bash # Save live session ... # Script takes action only when 'changes=EXIT' cheatcode is used. # Author: fanthom <fanthom@porteus.org> # Modifications proposed by: abelM -- forum.porteus.org # Check if 'changes=EXIT' cheatcode is active: te...
by abelM
26 Nov 2017, 12:16
Forum: Development
Topic: cleanup script copy update
Replies: 54
Views: 2177

cleanup script copy update

Hi all, Until we get a patched cleanup script I'm running a modified dump-session at shutdown -- bypassing cleanup . You'll find the code at direct update at dump session (Post by abelM #60431) #!/bin/sh # rc.local_shutdown dump-session && rm -f /mnt/live/tmp/changes-exit /mnt/live/tmp/changes-exit...
by abelM
24 Nov 2017, 22:12
Forum: Development
Topic: direct update at dump session
Replies: 13
Views: 649

direct update at dump session

I've made a modification to the code posted at direct update at dump session (Post by abelM #60431) # Remove deleted files and non matching whiteouts for y in $(find $FOLDERS -name ".wh.*"); do f="$(echo $y | sed 's/\.wh\.//g')" test -e "$MNAME/$f" && rm -rf "$MNAME/$f"; test -e "$INAME"/*/"$f" \ ||...
by abelM
23 Nov 2017, 21:36
Forum: Development
Topic: cleanup script copy update
Replies: 54
Views: 2177

cleanup script copy update

Nice tip. Thank you very much!