| Author |
Message |
zappa

Joined: 09 Feb 2009 Posts: 9 Location: Italia
|
Posted: Thu 12 Feb 2009, 05:56 Post subject:
How to Remaster a FULL HDD Install with recompiled kernel? |
|
Ciao,
i'm a new puppy user, but i use linux distros from some years (slackware, sidux, etc...).
I tested puppy and i realize that is my preferred live distro. I use a Puppy 4.1.2 Full Install HD, but i have a some problems:
i have recompiled the 2.6.26.8 kernel with some patches, this kernel boot correctly from my partition; i have recompiled ALSA 1.0.19 and also this run correctly i have added some applications: Skype, Firefox, Vim7.2....
The problem is: how to remaster this full install with this kernel, this driver ALSA, this software and my configurations?
In other words how to remaster my actual full install puppy?
I have read the documentation about Puppy Unleashed and Woof, but for me it's more difficulty and is low level method, if someone help me, i am a Happy New Puppy User
Thank's and sorry for my bad english
zappa
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Thu 12 Feb 2009, 14:08 Post subject:
|
|
| Quote: | | i have recompiled ALSA 1.0.19 and also this run correctly |
drool...would I be right in thinking this was done for the 2.6.26 kernel rather than the 2.6.25?
As for remastering I need to try this out myself but was going to try dougals remaster script from older puppies ... there may be 4.12 incompatabilities..but if it works than I would create a fresh pup_xxx.sfs , use the new kernel and the initrd.gz 'should' still work but will need the updated kernel modules it uses adding...again I need to get familiar with the 4.12 initrd structure as it seems to have changed a little.
If I discover anything useful I will pet you know.
regards
mike
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Thu 12 Feb 2009, 14:09 Post subject:
|
|
| Quote: | | i have recompiled ALSA 1.0.19 and also this run correctly |
drool...would I be right in thinking this was done for the 2.6.26 kernel rather than the 2.6.25?
As for remastering I need to try this out myself but was going to try dougals remaster script from older puppies ... there may be 4.12 incompatabilities..but if it works than I would create a fresh pup_xxx.sfs , use the new kernel and the initrd.gz 'should' still work but will need the updated kernel modules it uses adding...again I need to get familiar with the 4.12 initrd structure as it seems to have changed a little.
If I discover anything useful I will let you know.
regards
mike
|
|
Back to top
|
|
 |
zappa

Joined: 09 Feb 2009 Posts: 9 Location: Italia
|
Posted: Fri 13 Feb 2009, 04:48 Post subject:
|
|
I use the 2.6.26.8 kernel why is the most recent kernel with Real Time patches...if you find a good solution for the creation of the initrd, post it here.
ciao
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Fri 13 Feb 2009, 11:20 Post subject:
|
|
From pizzagood....good for puppy 4 also...
| Quote: | To edit initrd.gz from Puppy 3.xx, first copy initrd.gz to someplace on a linux filesystem where you can work on it (I like to use /tmp/NewDir). Then open a terminal there and run this:
mkdir initrd-tree
cd initrd-tree
zcat ../initrd.gz | cpio -i -d
That will make a directory initrd-tree that contains the contents of the initrd.gz file. Go inside and edit away. When you're finished, from inside the initrd-tree/ directory, run these commands:
find . | cpio -o -H newc | gzip -9 > ../initrd.gz
That will replace the old initrd.gz file with the new one. Now just copy that into the correct place, and you're good to go. |
for the pup_xxx.sfs then mksquashfs of the filesystem minus unneeded parts is the basic setup......
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Sun 15 Feb 2009, 14:12 Post subject:
|
|
Ok here's my findings after try this...
Setup = full install of puppy 4.12.
Remastered using dougals remaster script from puppy 2.xx.
I simply created a fresh pup_412.sfs only option and smart mode (ie /root and /etc can be edited.
Requirements...for this approach are just the original pup_412.sfs ... no need to mount as script will pop up a file browser dialog to locate it. It should be put in say /tmp along with anything else that does not want to be included...eg /boot as this folder is ignored....move back when finished as /tmp gets wiped during shutdown!!
/etc and /root can be edited before inclusion....i usually need to copy over stuff from /root when there is new software....your setup will vary.
Result is new pup_412.sfs...can be used for frugal or added to iso using isomaster or simply kept as a backup....I tested frugaly and it ran just fine.
I've attached dougal's script for convenience.
By the way I tried the included remaster script and did not get very far.....
hope this helps
mike
 |
| Description |
|

Download |
| Filename |
dougal_remaster.tar.gz |
| Filesize |
9.41 KB |
| Downloaded |
271 Time(s) |
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Sun 15 Feb 2009, 14:42 Post subject:
|
|
Ok, mikeb knows his stuff and may have already answered this, but I had a comment from a "Puppy Gamer's Unite" thread that MU did about remastering from a hard drive install and it worked wonders.
| 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
|
It's not a beginner's instructional, but after trying it a couple of times it was very simple. Not a script, but certainly doable by anyone.
|
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 4378
|
Posted: Sun 15 Feb 2009, 17:17 Post subject:
|
|
| Quote: | | Ok, mikeb knows his stuff |
yo christmas card and choccie biccie for you...
Dougal's script has always been 100% for me on puppy 2.xx so I thought I'd give it a whirl...apart from a cosy gui it keeps space needed to a minimum so therefore designed for cramped usb/memory conditions...I worship thee ground he walks upon.
Nothing wrong for the manual method ^^ either...good for the learning curve.
I originally remastered using editSFS...a beastie but learned a lot...and not to forget hackyremaster...another demon script....let those computors work for you I say (cracks whip)
mike
|
|
Back to top
|
|
 |
zappa

Joined: 09 Feb 2009 Posts: 9 Location: Italia
|
Posted: Wed 25 Feb 2009, 16:59 Post subject:
|
|
thanks,
these days I use the script to do a test with my problem.
|
|
Back to top
|
|
 |
bremer

Joined: 25 Feb 2009 Posts: 72
|
Posted: Sun 01 Aug 2010, 04:16 Post subject:
|
|
The technique described above didn't work for me. At reboot, the disc complains that it cannot find the sfs file.
|
|
Back to top
|
|
 |
|