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 Sat 23 Jun 2018, 23:48
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Use the builtin remaster script without your distro's actual iso or cd
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
nic007


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

PostPosted: Wed 06 Jun 2018, 09:26    Post subject:  Use the builtin remaster script without your distro's actual iso or cd  

Sometimes one only wants to make a remaster of the base sfs. Puppy's builtin remaster script requires your distribution's CD or iso to be loaded before it attempts the remaster but you may not have the actual iso or cd at hand (eg: only having the files required for frugal install). So this how to is a way to do your remaster nevertheless, using the remaster script as is (without editing the script).

The remaster script asks one to load the distribution's iso, at least, so it can copy files. It requires that the iso at least contains the files initrd.gz and the distribution's base sfs. So, we are going to create an iso with fake files:
1. Right-click in a rox window and choose to create a blank file, name it initrd.gz
2. Do the same as in 1 but name the blank file "the name of your base sfs" eg: puppy_tahr_6.0.5.sfs
3. Use the isomaster utility (normally included) from menu to create a new iso and include the two created blank files. Name your new iso whatever you like, eg. fake.iso

When you run the remaster script, load the iso you have created when it's required and select it from the dropdown menu. The remaster program will then proceed with the remaster. When you get to the stage where the application asks if you want to create a cd or an iso, select "no". When the process has finished, you will find the newly remastered base sfs (and a seperate zdrv if you have chosen that option) and the blank initrd.gz (which was copied during the process) in the "puppylivecdbuild" folder. You only need the remastered base sfs (and zdrv if applicable) of course so delete the fake initrd.gz


ALTERNATIVE:

Download the attached zip file. It contains an already made fake iso and a slightly altered remaster script to be used instead (it looks for initrd.gz only).

Last edited by nic007 on Yesterday, at 09:23; edited 3 times in total
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2215
Location: In The Way

PostPosted: Wed 06 Jun 2018, 17:10    Post subject:  

Nice hack!
Back to top
View user's profile Send private message MSN Messenger 
nosystemdthanks

Joined: 03 May 2018
Posts: 169

PostPosted: Wed 06 Jun 2018, 17:56    Post subject:  

awesome idea.
_________________
philosophy is important to software design; coding is useful for demonstrating design concepts
Back to top
View user's profile Send private message Visit poster's website 
hamoudoudou


Joined: 24 Jul 2014
Posts: 1124
Location: rabat

PostPosted: Thu 07 Jun 2018, 11:41    Post subject: That please me. Just do as requested.  

That please me. Just do as requested. (for humans)
Just need to understand English.. nice.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 978
Location: Oslo, Norway

PostPosted: Thu 07 Jun 2018, 22:23    Post subject:  

Ooh, that is very clever, nic007! Idea
Is the sequence limited to a particular version of the remaster program, or can it be used with the remasterpup2 version in Lucid 5.2.8.7?
It is one of the few times I haven't seen a result from the command asking for a version: remasterpup2 --version.
Are there reasons it cannot be used with a live puppy? (I'll try anyway, I just ask in case you know the answer already! Very Happy )

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
nic007


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

PostPosted: Fri 08 Jun 2018, 01:53    Post subject:  

tallboy wrote:
Ooh, that is very clever, nic007! Idea
Is the sequence limited to a particular version of the remaster program, or can it be used with the remasterpup2 version in Lucid 5.2.8.7?
It is one of the few times I haven't seen a result from the command asking for a version: remasterpup2 --version.
Are there reasons it cannot be used with a live puppy? (I'll try anyway, I just ask in case you know the answer already! Very Happy )


Hi,tallboy. I used the builtin remaster script of Xenialpup 7.5 as base for the "alternative" method where I edited the script slightly to only look for initrd.gz. The reason is that that remaster script works on all my puppys ie. Wary, Racy, Precise, Tahr and Xenial. There's a good chance that it would work on most puppys in the 5, 6 and 7 series.

Generally, the remaster script also requires reference to the base sfs of the distribution you are using. So, if you are going to use it as is, you need to follow the first method where you also need to add reference to the base sfs in the iso. This method would probably work with the specific remaster script of your distribution but I can't be sure. Remember - This is a workaround to still use the remaster script to do a remaster of the base sfs without the distribution's actual cd or iso. You need the actual iso/cd to make an iso with all the files of your distribution.
Back to top
View user's profile Send private message 
nic007


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

PostPosted: Fri 08 Jun 2018, 07:53    Post subject:  

Attached a completely automated script to remaster the base sfs. This is based on the builtin remaster script and requires NO user input and no need to load any CD/ISO. The result is a fully customised base sfs and seperate zdrv. It works for me with 32-bit versions of Wary, Racy, Precise, Tahr and Xenial. More testing with other flavours of puppy will be appreciated, so please report back. PS: The working directory is /PuppyRemasterSFS so please make sure you have enough space for the operation.

Cleaned up some code. Attached official release of Remasterpup-Auto-2018

Part of Remasterpup-Suite-2018 now. See: http://murga-linux.com/puppy/viewtopic.php?p=996027#996027

Last edited by nic007 on Sat 16 Jun 2018, 00:30; edited 2 times in total
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 336
Location: Yugoslavija

PostPosted: Fri 08 Jun 2018, 10:11    Post subject: lz4  

regards nic007,
can you add lz4 compression
as in debiandog?
thanks
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3108
Location: holland

PostPosted: Fri 08 Jun 2018, 10:27    Post subject:  

zagreb999 wrote:
can you add lz4 compression


Booting with lz4 compressed sfs's is totally dependent on the kernel supporting it.
Also, earlier versions of mksquashfs will not support lz4.
So, adding lz4 compression option to a remaster-script makes no sense if you cannot be sure that the Puppy kernel has support for it (which is not in most cases).

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
nic007


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

PostPosted: Fri 08 Jun 2018, 10:36    Post subject: Re: lz4  

zagreb999 wrote:
regards nic007,
can you add lz4 compression
as in debiandog?
thanks

Hi, not with this automated version as there are no user options. I have another older version with various compression options so may add lz4 compression to that one later. What I want right now is feedback on how "universally" workable this version is. I'm not familiar with debiandog, will puppys mainstream remasterscript work on that?
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 336
Location: Yugoslavija

PostPosted: Fri 08 Jun 2018, 10:38    Post subject:  

FRED,OK!

I USE KERNEL 4.10 FROM
PUPJIBARO AND IT HAS LZ4....
IT IS THE BEST KERNEL
IN PUPPY LINUX.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3108
Location: holland

PostPosted: Fri 08 Jun 2018, 13:55    Post subject:  

nic007 wrote:
I'm not familiar with debiandog, will puppys mainstream remasterscript work on that?


No. Also *Dog remaster scripts won't work on Puppy.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 978
Location: Oslo, Norway

PostPosted: Thu 14 Jun 2018, 10:53    Post subject:  

Thank you, nic007. Very Happy
_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
nic007


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

PostPosted: Fri 15 Jun 2018, 09:45    Post subject:  

tallboy wrote:
Thank you, nic007. Very Happy

Pleasure. See: http://murga-linux.com/puppy/viewtopic.php?p=996027#996027 for newly released Remasterpup-Suite-2018.pet
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1529
Location: The other Mr. 305

PostPosted: Fri 15 Jun 2018, 23:25    Post subject:  

Nic007:

Thanks for sticking with this over time! I remember you helping me years ago with this issue.

Kind regards,

Slavvo67
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 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.0673s ][ Queries: 14 (0.0050s) ][ GZIP on ]