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 23 Jun 2017, 23:48
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Yet another basic remaster script for frugal install
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [35 Posts]   Goto page: Previous 1, 2, 3
Author Message
nic007


Joined: 13 Nov 2011
Posts: 2029
Location: Cradle of Humankind

PostPosted: Sun 18 Jun 2017, 08:45    Post subject:  

belham2 wrote:
nic007 (and musher),

Just wanted to say again this little script is useful! The whiteout files thing is the only thing that is bothersome (but easily enough ignored). Though if you both could get the 'white-out files' issue resolved, this script would be perfect. Wink

Thks again.

Hi Belham2. I think I have good news for you. The remaster script posted below does indeed seem to get rid of files you have deleted in the base sfs. I've just checked with Wary Puppy. I deleted a few files in /usr/bin, did a remaster and bingo, gone in the remaster. Smile
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10309
Location: Gatineau (Qc), Canada

PostPosted: Sun 18 Jun 2017, 12:08    Post subject:  

nic007 wrote:
Hi, musher0. Thanks for your input. Few things:

rxvt -e compression line not working on my Puppys. Had to change $MksQ to mksquashfs $FilSys /mnt/home/$PUPPYSFS...

Content of save file is not copied.

I see you have only copied the ro's. I think the best way will be to copy all mounted stuff (including adrv, fdrv, ydrv, zdrv) all in one base sfs. But this will have to be in the correct sequence as people put all kinds of things in these drives. Not sure if your method of copying them all at once is going to work unless the listing sequence is absolutely correct.

The script does not deal with white-out files (record of "deleted" base files). The original files are showed in the remastered sfs. I would like these files to be deleted permanently. Can you assist with this?

In co-op nic007.

Hi nic007,

As I said, that was a suggested edit of your version 2. By the time I
had finished, you had released your version 3 !!!

adrv, fdrv, etc. were meant as separate sfs's and can stay separate, IMO.

In particular, the zdrv. That's where the kernel drivers and similar are. It's
very important to have it alongside the main puppy sfs, but it is not
necessary to blend the zdrv into the remaster.

As to the proper order of copy, it applies to the pup_rw. It should be
copied last. The code on line 37 of my edit should have copied the
pupsave file. That's strange, no problem here.

For the pup_ro? files, I believe my
Code:
mount | awk '/_ro/'
and following lines above do a good job of it. They certainly save bytes
compared to the mile-long line you're using!? Wink The "tac" utility is also
respecting the reverse order in which you decided to do things in your
version 3.

I touched up the RxvT line in my script above, replacing English quotation
marks (") with German quotation marks ('). I had no problem on the
DPupStretch-7, but maybe that small change will bring success with your
version of rxvt.

I'll see what I can find on removing the "whiteouts".

BFN.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
mfb

Joined: 22 Mar 2016
Posts: 16

PostPosted: Sun 18 Jun 2017, 13:19    Post subject:  

I have used the new version, Remasterpup(BaseSFS).zip, on Xenial-64-7.0.7 and tahr-64-6.0.5 both of which I run entirely in RAM.

Both tests resulted in total success and nic007's code, with its clear and helpful advice windows on available options at the decision stages made it a pleasure to use.

I only use 3 files - initrd.gz, vmlinuz and the main (remastered) sfs because I run entirely in RAM and do not need a save file, folder or dedicated save partition nor do I need to make any choices when booting.

I thoroughly recommend readers to try it on their frugal installs (after precautionary renaming of any current file(s) before using your remastered sfs - per nic007's opening post) and then report back with details of where they tried it and how they found it.
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2029
Location: Cradle of Humankind

PostPosted: Wed 21 Jun 2017, 10:55    Post subject:  

Added final versions of Remasterpup(ISO-CD) and Remasterpup(Base SFS) to opening post.
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2029
Location: Cradle of Humankind

PostPosted: Yesterday, at 23:19    Post subject:  

Users encouraged to use either version of Remasterpup instead. It seems to deal correctly with white-out files and builtin applications removed by the "Remove builtin packages" application seems to be removed accordingly.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [35 Posts]   Goto page: Previous 1, 2, 3
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.0892s ][ Queries: 15 (0.0191s) ][ GZIP on ]