How can I load an sfs file using a script? (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
tcoder
Posts: 20
Joined: Fri 05 Apr 2013, 19:10
Location: Phoenix, Arizona USA

How can I load an sfs file using a script? (Solved)

#1 Post by tcoder »

I'm trying to create an .iso file that has Java built into it. Apparently, the distro of Puppy (Slacko version 5) doesn't have Java, therefore I want to include the jre sfs file and then load it via a script file and have the script file also execute a java command. Can anyone help me with this, or is there a better way to do this?

Terry

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#2 Post by jrb »

Phatslacko-5502 has java built in.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#3 Post by mikeb »

Ok basic steps

Code: Select all

mkdir -p /initrd/jre
mount-FULL -o loop -t squashfs /path/to/jre.sfs /initrd/jre
busybox mount -t aufs -o remount,add:1:/initrd/jre=ro unionfs /
to remove.......

Code: Select all

busybox mount -t aufs -o remount,del:/initrd/jre unionfs /
busybox umount /initrd/jre
Important note...the sfs must not be within the existing union..... I move to a tmpfs if so in my case.

done... or there is a 84k script if you like....

note this loads jre on top of any other sfs... usually makes life easier and if packaged correctly no reboot should be needed to run java.

mike

tcoder
Posts: 20
Joined: Fri 05 Apr 2013, 19:10
Location: Phoenix, Arizona USA

How can I load an sfs file using a script?

#4 Post by tcoder »

Thanks guys, you saved me a lot of time.

Terry

Post Reply