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 Fri 25 Jul 2014, 21:20
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Kids web-kiosk running entirely in RAMDISK
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [17 Posts]   Goto page: Previous 1, 2
Author Message
xerxesb

Joined: 19 Mar 2013
Posts: 7

PostPosted: Fri 29 Mar 2013, 17:27    Post subject:  

After a couple of days, I've managed to get something working.

It's not exactly what you were suggesting Ted, but it's also a combination of that and a lot of other posts i've read.

Basically, it starts with a frugal install. Then when i'm remastering, i provide a few changes to system files
1. I modified the rc.shutdown to not save any session information. This means any changes in that session won't be persisted and it will restore to the "clean" state every boot.
2. I modified rc.local to umount /dev/sda1. I'm not sure if this is required anymore, but I still have it.
3. I changed the GRUB menu to boot with pfix=ram to force the RAMDISK, but i'm not sure if this is required anymore given the next change
4. I modified the initrd.gz to force puppy to boot in PUPMODE=0. This tricks it into thinking it's running from the LiveCD for the first run, and won't mount any disk-drives either RO or RW. Now if my son turns off the computer without shutting down, the drive won't need a fsck.
5. I then modified ~/.xinitrc to NOT call /usr/sbin/delayedrun, and instead just execute the contents of the ~/Startup directory (this is the last thing that delayedrun does). This prevents the initial "welcome" splash screen, the getting-started HTML page and the "woof" audio.

After remastering from LiveUSB, i just drop the newly created lupu-510.sfs into my frugal install folder and it's done.

Thanks everyone for your suggestions! If you can see a problem with anything i've done, i'd appreciate the feedback Smile
Back to top
View user's profile Send private message 
Q5sys


Joined: 11 Dec 2008
Posts: 1047

PostPosted: Fri 29 Mar 2013, 18:42    Post subject: Re: Kids web-kiosk running entirely in RAMDISK  

rcrsn51 wrote:
xerxesb wrote:
What i'd like to do is install and run puppy from the local HDD, but unmount the HDD after everything has been loaded into the ramdisk.

Contrary to what you may have read, the save file that acts as your persistent storage is NOT loaded into RAM. It is mounted, so you cannot unmount it during a session.

Read here for some ideas.


It is possible to load a save file into ram to run... but of course no settings are changed at shutdown. I took some of Jeminah's work and made it an option in Attackpup... but Im not at home so I'm not able to show you how I did it.
It required having a 2nd initrd with a modified init script.

Honestly, a remaster is the simplest solution.

_________________



My PC is for sale
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [17 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0432s ][ Queries: 11 (0.0038s) ][ GZIP on ]