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 Thu 20 Sep 2018, 22:47
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOW-TO: Do a full manual remaster without Unleashed
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4832
Location: Kingwood, TX

PostPosted: Wed 27 May 2009, 14:35    Post subject:  HOW-TO: Do a full manual remaster without Unleashed  

from a full working & compatible puppy/puplet (same kernel etc..)
mount a pup_XXX.sfs and copy it to a folder (or you can start from an empty folder)
do all of your manual editing of the structure (you can expand pets using pet2tgz and dump them in the base of the folder you created, delete files or modify configurations)
run dir2sfs on the directory
rename the sfs to pup_XXX.sfs (XXX must match your initrd.gz version)
copy all of the files to a folder from the corresponding iso except boot.cat and the pup_XXX.sfs (use the new pup_XXX.sfs - boot.cat will be auto generated)
Code:
mkisofs -D -R -o mypuplet-XXX.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table NAMEOFYOURFOLDER


I do all but the last step and use a frugal install to check as I reach build milestones.... then I make the iso once it is all checked out
I usually do this all /tmp rather than on a mounted drive so the build is much faster (because I have sufficient RAM)

sorry if it is not useful - for me it is faster than trying to do unleashed because I can QC the packages one by one

_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
steve_s


Joined: 26 May 2008
Posts: 1576
Location: Austin, TX, USA

PostPosted: Fri 29 May 2009, 09:42    Post subject:  

Thank you for this, technosaurus. I wondered if this had a thread on it or not so I was looking around for it today. I had to keep digging back through one of my old threads to the same procedure as explained out by MU. As you can see the general format is exactly what you recommend:
Quote:

when I create Muppy, I do not remaster.
I use a method, that is based on this concept (in Muppy it is more complex, but that does not matter).

I did not test it with copying files from a full installation, so I cannot guarantee, that it works Exclamation

Create on a Linux-drive a folder like SFS.
So you might have:
/mnt/hda5/SFS/

Now boot from the LiveCD.
Mount hda5, and copy the contents of pup_400.sfs to the new folder:
cp -ax /initrd/pup_ro2/* /mnt/hda5/SFS/
So you have a writable copy of the original basesystem.

Now copy important folders from your own installation over this new folder.
Like:
cp -ax /mnt/hda1/root/* /mnt/hda5/SFS/root/
cp -ax /mnt/hda1/usr/* /mnt/hda5/SFS/usr/
cp -ax /mnt/hda1/var/* /mnt/hda5/SFS/var/
This assumes, that your full installation is on hda1.

You should ignore folders like /etc, /bin, /proc, /sys.
They have some systemfiles, and settings for your own graficscard and network. These should not overwrite the default settings for a CD.
/etc/ might have some new resourcefiles created by your games, though.
You had to find them, and copy them one by one.
But this is very seldom.

Then build a new SFS:
cd /mnt/hda5
mksquashfs SFS pup_400.sfs

Now you have a modified basesystem.

finally, you need to create a ISO fromit.
Create a folder:
/mnt/hda5/ISO

Copy all files from the CD there.
Replace /mnt/hda5/ISO/pup_400.sfs with your new /mnt/hda5/pup_400.sfs.

Build the ISO:
cd /mnt/hda5
mkisofs -o gamepup.iso -l -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table ISO/
md5sum gamepup.iso >gamepup.iso-md5sum.txt

Mark


...at the time I was trying to do a remaster from a full install. The same basic concepts apply and I've now used it on a full install and on a frugal.

So, again, thank you for posting this. I just had to look this up since I didn't have the ram on my laptop to do a remaster via the script. So I found this procedure and went through it, very simple. Thanks again.
Back to top
View user's profile Send private message Visit poster's website 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Fri 29 May 2009, 18:47    Post subject:  

steve_s wrote:
Thank you for this, technosaurus. I wondered if this had a thread on it or not so I was looking around for it today. I had to keep digging back through one of my old threads to the same procedure as explained out by MU. As you can see the general format is exactly what you recommend:
Quote:


cp -ax /mnt/hda1/root/* /mnt/hda5/SFS/root/
cp -ax /mnt/hda1/usr/* /mnt/hda5/SFS/usr/
cp -ax /mnt/hda1/var/* /mnt/hda5/SFS/var/



The reader should scratch the commands I highlighted in
green. One reason why:

They don't reflect a good grasp of Linux basics, such as the
usage of the wildcard *

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
steve_s


Joined: 26 May 2008
Posts: 1576
Location: Austin, TX, USA

PostPosted: Sat 30 May 2009, 16:12    Post subject:  

Bruce B wrote:
steve_s wrote:
Thank you for this, technosaurus. I wondered if this had a thread on it or not so I was looking around for it today. I had to keep digging back through one of my old threads to the same procedure as explained out by MU. As you can see the general format is exactly what you recommend:
Quote:


cp -ax /mnt/hda1/root/* /mnt/hda5/SFS/root/
cp -ax /mnt/hda1/usr/* /mnt/hda5/SFS/usr/
cp -ax /mnt/hda1/var/* /mnt/hda5/SFS/var/



The reader should scratch the commands I highlighted in
green. One reason why:

They don't reflect a good grasp of Linux basics, such as the
usage of the wildcard *


...thanks, Bruce. Like I said, this was a straight MU post. I knew that it wasn't really for the starting Linux user; I should have mentioned that.
Back to top
View user's profile Send private message Visit poster's website 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Mon 01 Jun 2009, 02:22    Post subject:  

I don't know if technosaurus is finished with the how-to.

The manual way is the way I do it, if I do it.

The pup_xxx.sfs file is quite probably the only file which
one would edit.

Technosaurus choice in program is the one I would use, but
there is a problem which should be addressed. I don't
think Puppy includes mkisofs any longer.
The file Puppy now uses I believe is:
/usr/bin/genisoimage

Check that what seems to be mkisofs is not merely a
symlink.

I've attached the real and recent mkisofs version
2.01.01a58 to this post.

Also, if anyone wants the complete cdrtools, I found it is a
very straight forward compile and install in Puppy.

Link to Cdrtools web site and source code

~
mkisofs.gz
Description 
gz

 Download 
Filename  mkisofs.gz 
Filesize  151.65 KB 
Downloaded  420 Time(s) 

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
runtt21


Joined: 07 Jun 2008
Posts: 1651
Location: BigD Texas

PostPosted: Mon 01 Jun 2009, 17:59    Post subject:  

I used mkisofs in puppy 4.2v2 to install the grub bootloader for cd , It s still there .
Back to top
View user's profile Send private message Visit poster's website 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Tue 02 Jun 2009, 15:37    Post subject:  

runtt21 wrote:
I used mkisofs in puppy 4.2v2 to install the grub bootloader for cd , It s still there .


I didn't know there is a 4.2v2, if it's not on the ibiblio
server, would you mind posting where one can find it.

After your post I checked this Puppy;
puppy-4.2-k2.6.25.16-seamonkey.iso

There is no mkisofs in it.

My request is/was: Check that what seems to be mkisofs
is not merely a symlink.


But I didn't say how to check. Here is one way:

# cd /usr/bin
# ls -l mkisofs

If the output shows mkisofs -> genisoimage ; there is no
mkisofs, but you can download the one I uploaded.

Put it in /usr/bin and overwrite the symlink with
the true file.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Puppyt

Joined: 09 May 2008
Posts: 830
Location: Gatton, Queensland

PostPosted: Fri 12 Jun 2009, 07:23    Post subject:  

Really, really helpful. Thanks, technosaurus and Bruce B especially for these comments, I very much appreciate your instructions here.

(PS puppy-4.1.2-barebones-retro.iso also lacks mkisofs)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0987s ][ Queries: 12 (0.0165s) ][ GZIP on ]