Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 23 Jun 2018, 14:30
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Savefolder without 'mount -o bind' - works
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 9 [132 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9 Next
Author Message
peebee


Joined: 21 Sep 2008
Posts: 3368
Location: Worcestershire, UK

PostPosted: Tue 04 Nov 2014, 14:34    Post subject: Re: Problem with mechanism to make savefolder names unique
Subject description: shutdownconfig fix
 

mavrothal wrote:
Please test, either by patching or using the attached pet


Thanks Mav - all AOK in my tests
Cheers
peebee

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Sat 08 Nov 2014, 03:41    Post subject: Re: Problem with mechanism to make savefolder names unique
Subject description: shutdownconfig fix
 

mavrothal wrote:
Please test, either by patching or using the attached pet
Works fine on patched TahrPup 6.0.
I just tried using the default name a second time. It found the duplicate, said it was going to use a modified name, and did.

gyro
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 2971

PostPosted: Sat 08 Nov 2014, 05:34    Post subject:  

Thanks peebee, gyro
Committed

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 2971

PostPosted: Wed 12 Nov 2014, 13:47    Post subject:  

Now available for Puppy 5.2.8 Exclamation Very Happy
_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Sun 16 Nov 2014, 05:16    Post subject:  

I have updated the following:
http://www.fishprogs.software/puppy/raring/zdrv_raring_3.9.9.2.sfs
http://www.fishprogs.software/puppy/slacko6/ydrv_slacko_5.9.3.sfs
http://www.fishprogs.software/puppy/tahr6/ydrv_tahr_6.0.sfs
http://www.fishprogs.software/puppy/wheezy/ydrv_wheezy_3.5.2.11.sfs
They now contain the latest 'shutdownconfig' as patched by mavrothal,
and version 1.1 of the 'savefile2dir' utility, http://murga-linux.com/puppy/viewtopic.php?t=96472

gyro

Last edited by gyro on Sat 21 May 2016, 21:56; edited 1 time in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Tue 18 Nov 2014, 05:52    Post subject:  

Updated packages are now available for:

Slacko 5.7
http://www.fishprogs.software/puppy/slacko/initrd.gz
http://www.fishprogs.software/puppy/slacko/ydrv_slacko_5.7.sfs

Dpup Squeeze 5.X.3.4.12
http://www.fishprogs.software/puppy/squeeze/initrd.gz
http://www.fishprogs.software/puppy/squeeze/zdrv_squeeze_5.X.3.4.12.sfs

Dpup Squeeze 5.X.3.6.2.1
http://www.fishprogs.software/puppy/squeeze36/initrd.gz
http://www.fishprogs.software/puppy/squeeze36/zdrv_squeeze_5.X.3.6.2.1.sfs

In each case:
1) Download both files.
2) Rename current 'initrd.gz' as a backup.
3) Move both downloaded files into directory containing the frugal install.
4) Reboot.

Note: As for the 'raring' implementation, the 'squeeze' zdrv acts like a ydrv.

gyro

Last edited by gyro on Sat 21 May 2016, 21:58; edited 1 time in total
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1152
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Tue 18 Nov 2014, 22:37    Post subject:  

Thanks gyro!
_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Fri 21 Nov 2014, 07:47    Post subject:  

I have updated the following:
http://www.fishprogs.software/puppy/raring/zdrv_raring_3.9.9.2.sfs
http://www.fishprogs.software/puppy/slacko/ydrv_slacko_5.7.sfs
http://www.fishprogs.software/puppy/slacko6/ydrv_slacko_5.9.3.sfs
http://www.fishprogs.software/puppy/squeeze/zdrv_squeeze_5.X.3.4.12.sfs
http://www.fishprogs.software/puppy/squeeze36/zdrv_squeeze_5.X.3.6.2.1.sfs
http://www.fishprogs.software/puppy/tahr6/ydrv_tahr_6.0.sfs
http://www.fishprogs.software/puppy/wheezy/ydrv_wheezy_3.5.2.11.sfs
They now contain the latest 'savefile2dir' version 1.2, http://murga-linux.com/puppy/viewtopic.php?t=96472

gyro

Last edited by gyro on Sat 21 May 2016, 22:01; edited 1 time in total
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1052
Location: SW Wisconsin

PostPosted: Fri 21 Nov 2014, 09:41    Post subject: pupmode 13 saves  

Testing in X-slacko-2.2.1n. Frugal install to CF card, pmedia=ATAFLASH, PUPMODE=13. The appearance of the 'save' dialog or not on shutdown does not track the RAMSAVEINTERVAL set in Puppy Event Manager and saved in /etc/eventmanager. Normal behavior would be that setting 0 would result in the dialog, anything else just a straight save with no dialog.

Looking at rc.shutdown, a variable ASKTOSAVE is present but not set. I added the following code at line 99 and the above behavior is obtained. May be a cleaner way to do this, just a suggestion.
Code:
if [ $RAMSAVEINTERVAL = 0 ] ; then  #141118, Marv
  ASKTOSAVE=true
else
  ASKTOSAVE=false
fi

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 2971

PostPosted: Fri 21 Nov 2014, 16:59    Post subject: Re: pupmode 13 saves  

Marv wrote:

Looking at rc.shutdown, a variable ASKTOSAVE is present but not set.

Not in X-slacko currently but in Tahr/Slacko6 the ASKTOSAVE variable is set from the eventmanager > Save Session tab.
As soon as "Save interval" is set to "0" an 'ask to save' checkbox appears.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1052
Location: SW Wisconsin

PostPosted: Fri 21 Nov 2014, 21:06    Post subject: Re: pupmode 13 saves  

mavrothal wrote:
Marv wrote:

Looking at rc.shutdown, a variable ASKTOSAVE is present but not set.

Not in X-slacko currently but in Tahr/Slacko6 the ASKTOSAVE variable is set from the eventmanager > Save Session tab.
As soon as "Save interval" is set to "0" an 'ask to save' checkbox appears.


Thanks, that makes sense. For now I'll export it (set to false) from /etc/profile.local in X-slacko leaving rc.shutdown untouched.

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Wed 26 Nov 2014, 14:28    Post subject: snapmergepuppy for Dpup Wheezy 3.5.2.11  

I've done more testing of pupmode=13 in Wheezy 3.5.2.11, and have come up with 2 suggestions for extra patches for 'snapmergepuppy'.

Patch to tidy up symbolic link stuff:
Code:
--- snapmergepuppy.orig   2014-10-06 18:01:55.000000000 +1000
+++ snapmergepuppy   2014-11-24 04:36:28.138255092 +1000
@@ -62,6 +62,7 @@
 
 if [ -L $BASE ]; then #we have savefolder based on symbolic links
  BASEMTP="/initrd${PUP_HOME}"
+ BASE="`readlink -n -m $BASE`"
 else
  BASEMTP="$BASE"
 fi
This is just an efficiency thing, since $BASE is used a lot in the following code, decode the link once here so the system doesn't have to do it lots of times later. I've no idea if it makes any significant difference.

Patch to fix saving of '/dev':
Code:
--- snapmergepuppy.orig   2014-11-27 03:29:05.466244219 +1000
+++ snapmergepuppy   2014-11-27 03:17:33.000000000 +1000
@@ -143,6 +143,8 @@
 while read N
 do
 
+ [ "${N%%/*}" = "dev" ] && [ "${N:4:3}" = "tty" ] && continue
+
  #v4.01 graceful exit if shutdown X (see /usr/X11R7/bin/restartwm,wmreboot,wmpoweroff)...
  [ "$XRUNNING" = "yes" ] && [ -f /tmp/wmexitmode.txt ] && exit
 
This causes 'snapmergepuppy' to ignore '/dev/tty*'.
This should probably be done by modifying the 'find' line.
In Dpup Wheezy 3.5.2.11 with a savefolder using symbolic links, the partition was not unmounted cleanly. Omitting '/dev/tty*' from the file copy in 'snapmergepuppy' produced a clean unmount.
This does not make any sense to me. I fail to discern the connection. But it seems to work this way.
Interestingly Wheezy didn't seem to mind if I omitted '/dev' altogether.
Edit: Adding "|^dev/tty" to the list of exceptions on the first 'grep' on the 'find' line works, and is a neater solution.

Note: TahrPup 6.0 does not have this problem.

Since I'm already modifying 'init', I add an 'e2fsck' command in 'mnt_fnc', in my puppies.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Sat 29 Nov 2014, 11:57    Post subject:  

I have updated the following:
http://www.fishprogs.software/puppy/raring/zdrv_raring_3.9.9.2.sfs
http://www.fishprogs.software/puppy/slacko/ydrv_slacko_5.7.sfs
http://www.fishprogs.software/puppy/slacko6/ydrv_slacko_5.9.3.sfs
http://www.fishprogs.software/puppy/squeeze/zdrv_squeeze_5.X.3.4.12.sfs
http://www.fishprogs.software/puppy/squeeze36/zdrv_squeeze_5.X.3.6.2.1.sfs
http://www.fishprogs.software/puppy/tahr6/ydrv_tahr_6.0.sfs
http://www.fishprogs.software/puppy/wheezy/ydrv_wheezy_3.5.2.11.sfs
They now contain the latest 'savefile2dir' version 1.3, http://murga-linux.com/puppy/viewtopic.php?t=96472,
and the latest 'snapmergepuppy'.

Hopefully this is the last update.

gyro

Last edited by gyro on Sat 21 May 2016, 22:03; edited 1 time in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Sat 29 Nov 2014, 14:52    Post subject: patch 'snapmergepuppy' to omit '/dev/tty*'  

Just in case it is useful to somebody, I have atached the real patch file for Dpup Wheezy's 'snapmergrepuppy' to omit '/dev/tty*' from the list of files to copy.
(It doesn't look very clear in the forum as "code" because the long lines wrap.)

gyro
snapmergepuppy.devfix.diff.gz
Description  'gunzip' it to produce the .diff file.
gz

 Download 
Filename  snapmergepuppy.devfix.diff.gz 
Filesize  546 Bytes 
Downloaded  271 Time(s) 
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1505
Location: Brisbane, Australia

PostPosted: Sat 29 Nov 2014, 17:31    Post subject: Slacko64 5.9.1  

Updated packages are now available for Slacko64 5.9.1:
http://www.fishprogs.software/puppy/slacko64/initrd.gz
http://www.fishprogs.software/puppy/slacko64/ydrv_slacko64_5.9.1.sfs

gyro

Last edited by gyro on Sat 21 May 2016, 22:03; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 8 of 9 [132 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0635s ][ Queries: 12 (0.0123s) ][ GZIP on ]