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 Mon 22 Dec 2014, 07:28
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Load SFSs from psubdir
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message

Joined: 11 Aug 2009
Posts: 1927
Location: Israel, somewhere in the beautiful desert

PostPosted: Fri 09 Jul 2010, 10:38    Post_subject:  Load SFSs from psubdir
Sub_title: Make Puppy load SFS files from a sub-directory of /mnt/home instead of /mnt/home

It's very very simple. Thanks to Sit Heel Speak for reminding me I always wanted this feature in Puppy Smile

If you have no idea what psubdir is, don't do it Exclamation

This makes your Puppy load SFS from /mnt/home/<psubdir>, but ONLY from there. You must have psubdir specified for this to work; however, if you don't have a psubdir specified, it still works. It just appends it to the SFSs path, that's all, it's safe.

It's kinda experimental, tested it only on my puplet, which is 4.3.1-based (here. Theoretically, it should work with all Woof-built puppies.

1) Make /root/initrd, copy your Puppy's initrd.gz there.

2) Open a console, do this:
cd /root/initrd
gunzip initrd.gz
cpio -i < initrd
rm initrd

That will extract your Puppy's initramfs.

3) Then, run this:
geany init

Find the line that says SFSSDIR="$SMNTPT".

After that line, add this:
  # iguleder: add psubdir to SFSSDIR
  for code in `cat /proc/cmdline`; do
    case $code in

That should make your Puppy look at /mnt/home/<your psubdir> instead of just /mnt/home if you have a psubdir specified.

Save the file.

4) In the same console, run this:
find . | cpio -o -H newc | gzip -9 > ../initrd.gz

That will create a new initrd.gz in /root with the required change. Replace your original initrd.gz with the new one.

5) In the console, run this:
geany `which bootmanager`

Find the line cd $EXTRASFSMNTPT. Before this line, add this:
  #iguleder: add psubdir to EXTRASFSMNTPT
 for code in `cat /proc/cmdline`; do
   case $code in

That should make the boot manager able to list SFSs from the psubdir, instead of /mnt/home, very similar to the change in the initramfs.

Save the file. We're done Very Happy

Then go to the boot manager, add your favorite SFSs from /mnt/home/<psubdir> and have fun. Very Happy [/code][/url]

My homepage
My GitHub profile
Back to top
View user's profile Send_private_message Visit_website MSNM 
Puppy Master

Joined: 09 May 2005
Posts: 7100
Location: Perth, Western Australia

PostPosted: Fri 09 Jul 2010, 21:43    Post_subject:  

Yes, it is a good idea. I have implemented it in Woof, so future puppies will have it:


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 » HOWTO ( Solutions )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

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