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 Sun 21 Dec 2014, 14:07
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
SFS - How does it work?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Thu 03 Jul 2008, 14:03    Post_subject:  SFS - How does it work?
Sub_title: I made one but the filesystem doesn't work as expected
 

I have never created an SFS and hence the questions.

From what I read on puppylinux.com website, SFS is the top layer and any file in this layer will override (not physically) the same file in any other layer.

Based on the above understanding, I created an SFS and many files worked as expected. But the below 3 files did not.

1 - /root/.xinitrc - My version in the SFS was not used. Instead the already existing version was used.

2 - /root/Choices/ROX-Filer/PuppyPin - The wallpaper in the SFS version was picked up correctly. The SFS version had no icons on the desktop. But when the SFS was loaded, all the default icons appeared.

3 - /etc/windowmanager - I had changed this to icewm in the SFS. But even after loading the SFS, it continued to go to jwm. And this file was unchanged.

Can anyone explain what is going on? Or please correct me if my understanding is not right.
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Thu 03 Jul 2008, 14:19    Post_subject:  

files in the savefile (pup_save.2fs) always have a higher priority.
You can find them in /initrd/pup_rw/

There acctually is no way to workaround this, as this could break the users settings.
So to change those, you will have to write a script/dialog, that offers to overwrite them (creating backups maybe).

Concerning the Pinboard-icons:
this is done by Barrys approach, to add/remove icons to the desktop.
That script creates backups of puppypin, and restores them.
imho this approach is problematic, right because of the issues you have.

In Muppy I deactivated this I think, but don't remember, where.
I think it was /usr/sbin/fixpuppypin.

Another approach to add icons I posted here:
http://www.murga-linux.com/puppy/viewtopic.php?p=180206

This script could be run by a "sfs-observer" script.
That would check for a configfile in the SFS, and then add them to the pinboard using my script.
It would create a config-file, of what it added.
If the sfs would be removed, the icons from this configfile could be removed (if they were not used by another sfs/config either).

I'd like to write such a tool for Muppy, but had no time yet.
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Thu 03 Jul 2008, 14:27    Post_subject:  

@MU:

Thanks for the quick reply.

I guess, I will just have to add a script that can be run after the SFS is loaded that can change the required files, lines.

Also thank you for the easy dir2sfs script. This is what I used to create the SFS.

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send_private_message 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Thu 03 Jul 2008, 14:30    Post_subject:  

Here is another question. But about pet files.

Suppose I have /root/.xinitrc in a pet file - this would overwrite the existing .xinitrc file - right?

Also, what will happen when this pet is un-installed? Is there anyway to get back the original .xinitrc file?

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Thu 03 Jul 2008, 14:43    Post_subject:  

>Suppose I have /root/.xinitrc in a pet file - this would overwrite the existing .xinitrc file - right?

yes.

>Also, what will happen when this pet is un-installed? Is there anyway to get back the original .xinitrc file?

No.
Also here,you had to add a script, that backups/restores.
I think pets can include a postinstall.sh file (or similar), that is executed after installation.
Here you could run such actions.
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Thu 03 Jul 2008, 14:54    Post_subject:  

Thanks again Mark. I remember there is a Pinstall script that gets executed after the pet installation. But I dont know if there is a script that can be executed when the pet is being un-installed.
_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Thu 03 Jul 2008, 14:58    Post_subject:  

Very Happy
Quote:
This is an optional script that you would have to create yourself. Very few PET packages need this. Ditto for the post-uninstall script.


http://puppylinux.com/development/createpet.htm
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0521s ][ Queries: 11 (0.0031s) ][ GZIP on ]