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 21 Oct 2017, 03:01
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
aufs specific snapmergepuppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
gyro

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

PostPosted: Mon 09 Jan 2017, 06:40    Post subject:  aufs specific snapmergepuppy  

The attached "snapmergepuppy_aufs-0.1.pet" contains a new version of the "/usr/sbin/snapmergepuppy" file, with 2 changes.
1. It gets all it's information directly from aufs. It does not depend on any puppy directory naming or content assumptions.
2. It deletes files from pup_rw that it copies to pup_ro1.

This should work with any puppy that uses aufs, no-matter how the "init" script might setup things.
Warning: This original statement is incorrect, while this new snapmergepuppy is "init" agnostic, it does require coreutilities 8.21 or newer, so it only works on newish puppies. See mavrothal's comment below.

gyro
snapmergepuppy_aufs-0.1.pet
Description  click to install
pet

 Download 
Filename  snapmergepuppy_aufs-0.1.pet 
Filesize  4.49 KB 
Downloaded  67 Time(s) 

Last edited by gyro on Mon 09 Jan 2017, 18:11; edited 2 times in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 9386
Location: Charleston S.C. USA

PostPosted: Mon 09 Jan 2017, 14:57    Post subject:  

What testing does this need?

Hope you are going to offer this to Woof CE if it tests OK.

If you really want this to get into Puppy, the code is there in Woof-CE.
https://github.com/puppylinux-woof-CE/woof-CE
Make a pull request to submit to Woof CE.

There is also this:
woof-CE patch generator!
http://www.murga-linux.com/puppy/viewtopic.php?t=98740

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 2881

PostPosted: Mon 09 Jan 2017, 16:39    Post subject:  

Having only older pups in flash media failed to test as it will not work on older pups (pre-Tahr/slaco6). The --output=target df option requires coreutilities 8.21 or newer. You might want to go with good old awk instead.
_________________
== 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: 1401
Location: Brisbane, Australia

PostPosted: Mon 09 Jan 2017, 18:10    Post subject:  

mavrothal wrote:
Having only older pups in flash media failed to test as it will not work on older pups (pre-Tahr/slaco6). The --output=target df option requires coreutilities 8.21 or newer. You might want to go with good old awk instead.
Thanks.
This version really is targeted at "rationalise", and thanks to jlist, it is already there.

Obviously if back porting were to happen, this would need to be changed, but I see the main beneficaries are puppies with the new "init" and puppies that make significant use of the adrv and fdrv, and that tends to be the more recent puppies.
While "init" support for the adrv and ydrv has been around for quite a while, it's not that long ago that I had to edit the DISTRO_SPECS file in intitrd.gz to be able to use them.

Note: I have edited the first post to recant my original bold statement.

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

Joined: 11 Apr 2007
Posts: 915

PostPosted: Tue 10 Jan 2017, 12:37    Post subject:  

gyro,

I like this approach.

There was a little item that crept into the code.

Code:
 error_msg ()
 line 219
     /usr/lib/gtkdialog/box_splash -timeout 30 -close box -icon gtk-dialog-warning -bg red -text "$1"
 (probably should be)
    yaf-splash -box_splash -timeout 30 -close box -icon gtk-dialog-warning -bg red -text "$1"


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

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

PostPosted: Wed 11 Jan 2017, 05:39    Post subject:  

@seaside,

I don't see the problem with the code in "error_msg".
I did not change any code in "error_msg".

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


Joined: 24 Aug 2009
Posts: 2881

PostPosted: Wed 11 Jan 2017, 06:28    Post subject:  

I suspect the "complain" is because box_* infrastructure is not in older puppies.
Installing libstardust pet should fix that.
Update also coreutilites to 8.21+ and older puppies should be OK.

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

Joined: 11 Apr 2007
Posts: 915

PostPosted: Wed 11 Jan 2017, 10:35    Post subject:  

mavrothal wrote:
I suspect the "complain" is because box_* infrastructure is not in older puppies.
Installing libstardust pet should fix that.
Update also coreutilites to 8.21+ and older puppies should be OK.


mavrothal,

You're quite right. That test was with Precise 5.7.1, which does not have " /usr/lib/gtkdialog/box_splash".

A link could probably fix this-
Code:
mkdir /usr/lib/gtkdialog
ln -s /usr/bin/yaf-splash /usr/lib/gtkdialog/box_splash


gyro: I guess some of the puppies and me are getting old Sad

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

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

PostPosted: Wed 11 Jan 2017, 16:09    Post subject:  

Will this line work on older puppies?
Code:
BASEMTP="`stat -c %m -- \"$BASE\"`" #get mount point containing $BASE file
gyro
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 2881

PostPosted: Thu 12 Jan 2017, 01:15    Post subject:  

gyro wrote:
Will this line work on older puppies?
Code:
BASEMTP="`stat -c %m -- \"$BASE\"`" #get mount point containing $BASE file
gyro

OK in Precise and Slacko 5.7
Not in Racy 5.5 and Luci/Sulu.

_________________
== 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: 1401
Location: Brisbane, Australia

PostPosted: Thu 12 Jan 2017, 10:50    Post subject:  

I have attached "snapmergepuppy_aufs_retro-0.1.pet", for back porting to older puppies.

This contains the changes suggested above:
Code:
#BASEMTP="`stat -c %m -- \"$BASE\"`"
BASEMTP="`df \"$BASE\" | awk 'END{print $NF}'`"
and
Code:
yaf-splash -box_splash -timeout 30 -close box -icon gtk-dialog-warning -bg red -text "$1"
so it should work with older puppies.

Note: I have no intention of updating similar changes to the woof-ce version. The woof-ce version should remain as is.

gyro
snapmergepuppy_aufs_retro-0.1.pet
Description  click to install
pet

 Download 
Filename  snapmergepuppy_aufs_retro-0.1.pet 
Filesize  4.5 KB 
Downloaded  33 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
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.0711s ][ Queries: 13 (0.0137s) ][ GZIP on ]