Simple-Remaster

Miscellaneous tools
Message
Author
stemsee

#21 Post by stemsee »

This is an update with additions to /root/my-applications/.exclude (/etc/init.d/BOOTCONFIG, /etc/rc.d/wcpufreqfile, /root/.megaconf) (which may have been missing in previous package!!!) and a couple of minor additions to the code for opening boot from dir, now also opens /initrd/mnt/dev_ro2 (could alo be /mnt/home /mnt/Home or nothing if system copied to ram) (doesn't check if mounted) this is to assist in locating and copying vmlinux and initrd and zdrv adrv ydrv kernel-modules.sfs files for iso creation.
Attachments
Simple-Remaster-3.pet
(185.17 KiB) Downloaded 217 times

stemsee

#22 Post by stemsee »

So you compiled in NVIDIA modules, then remastered with modules in. Then you decide to boot with a 64bit kernel and zdrv-modules.sfs, while running you install a video editor, upgrade libreoffice and improve some scripts, o you decide to remaster again. However you do not want to include the 64bit zdrv-modules.sfs but you do want to keep the modules already in the main sfs from previous remaster. How do you do that? Simple-Remaster excludes /lib/firmware, /lib/modules, /etc/modules/*, /boot/System.map from the rsync command, and after rsync if modules were kept 'in' then rsync copys thos files/dirs from /initrd/pup_z/*, so any remastered in modules will not be included. Modules out simply does not include the second rsync. So the only way to remaster and keep already in modules in is to use the original kernel without zdrv and selecting modules in. Now there is a third option, at the option to leave modules in or out, just pressing enter will will not include zdrv and will not copy from the / but will copy from /initrd/pup_ro2 /lib/modules, lib/firmware, boot/system.map, and etc/modules. So now you can be running with other kernel and not include those elements (a situation I found myself in!). There are other considerations which I will deal with later.
Attachments
Simple-Remaster-4.pet
(184.85 KiB) Downloaded 242 times

stemsee

#23 Post by stemsee »

Here is an update with more added to cleaning/exclude lists cups/cache and xsane and popcorn-time.
Attachments
Simple-Remaster-7.pet
(180.52 KiB) Downloaded 203 times

stemsee

#24 Post by stemsee »

Simple-Remaster-8

Fixed going to iso. If mods in then zdrv* ydrz* and kernel-modules.sfs not in root of iso, but adrv will be.

Tested
Attachments
Simple-Remaster-8.pet
(181.01 KiB) Downloaded 282 times

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#25 Post by slavvo67 »

Hi Stemsee:

Any remaster product for Fatdog64? The built-in remaster iso doesn't work for me on that one.

Best,

Charlie

stemsee

#26 Post by stemsee »

Simple-Remaster has Fatdog Compatibility built in. So does my sfs-remaster suite.

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#27 Post by Ted Dog »

lol yet another simple remaster effort, you should ask for a sub section like we got for multisession just for remaster.
So what is different from the last half dozen remaster tools you have provided?
Like the FatDog support. :lol:

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#28 Post by slavvo67 »

The more remastering, the better! :shock:

Thanks Stemsee. I'll give her a try.

Bindee

#29 Post by Bindee »

slavvo67 wrote:The more remastering, the better! :shock:

Thanks Stemsee. I'll give her a try.
How do you know it's a her? :P

stemsee

#30 Post by stemsee »

@TedDog
Well i have learnt a lot from my mistakes.
This is a less ambitious yet equally effective tool.
SFS-Direct-Remaster simply builds an sfs (Still a great tool).
This has fatdog, Quirky, Lighthouse, and regular pups, but not DebianDog.
I will upload latest which (hopefully) fixes a bug for remastering quirky.
It's quick and versatile and goes to iso. All but one question is asked at beginning and let's user leave modules in or out or as is.
This is a one script tool no supporting files needed for remaster, boot files included for iso.

Smooth sailing with this one, so probably a she!

stemsee

#31 Post by stemsee »

I will have to build in a partition format checker as I notice that cups doesn't survive the remaster, at least on ntfs partition. I will need to check fat32 to see if the same corruption occurs in usr/lib/cups/. I will let it check and warn but not prevent using the partition for the intermediate remaster directory, this wont occur when remastering in ram!

stemsee

#32 Post by stemsee »

Without investigating I wonder if the corruption occurs only with files or folders whose size is less than 1kb close to 0bytes. If this turns out to be correct then a workaround would be to suffix such files and store them in ram until the squash. Just a thought.

stemsee

#33 Post by stemsee »

So last to the party again!!!

fat32/ntfs cannot handle linux symlinks! Thanks for caring and sharing!

!laughable Cactus needles!

So if one wants to remaster on ntfs or fat32 then it must be inside file with internal ext2/3/4 formatted filesystem.

stemsee

#34 Post by stemsee »

A few improvemets particularly with regard to chrome extensions retained and history/profile removal.

to do detect fat/ntfs partition, work in ram or ext partitions only.
Attachments
Simple-Remaster.pet
(8.64 KiB) Downloaded 194 times

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#35 Post by LazY Puppy »

So last to the party again!!!

fat32/ntfs cannot handle linux symlinks! Thanks for caring and sharing!
This is NOT the only thing that could cause trouble of some sort.

Anything what has to do with extracting files (like archives, .pet, .sfs etc) containing Linux file system structure should be done GENERALLY on a ext partition !!!

E.g. create a text file (without the .txt extension) on a ext partition and move or make a copy of it to vfat or ntfs partition - it will have changed some of its permissions then, since it will appear as a script file (those ones having green text).

You can see this effect also on binaries like the grub4dos boot loader, grldr.

More examples on this are the isolinux.bin file and/or the .msg files from within a ISO.

All of those appearing with green text as soon as they are stored on vfat/ntfs.

It's good to have ability to write to vfat/ntfs in Linux, but don't do this when editing files from a Linux file system structure !!!
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

stemsee

#36 Post by stemsee »

Thanks! So I will basically have to remaster in a savefile/swapfile on a fat or ntfs system but the mksquashfs itself can be on the fat/ntfs!

So here is simple remaster which checks for fat/ntfs and also follows symlinks in case of home Home,

I will add the remaster on fat/nfs in temporary swapfile/savefile later!
Attachments
simple-remaster.pet
(5.35 KiB) Downloaded 243 times

Post Reply