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, 10:14
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Another re-write of the "init" script - using OverlayFs?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 13 of 14 [196 Posts]   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14 Next
Author Message
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Sun 24 Jun 2018, 08:47    Post subject:  

peebee wrote:
see that "/usr/sbin/overlay-setup-frugal" is in overlay_mods.sfs but do I install the .sfs and then run it or do I extract it and run it??
The most reliable way to do it in a "normal" puppy is to sfs_load the "overlay_mods.sfs" from the tar file, thus making the new utilities available, but not modifying the system.
Then the process I outlined in my previous post should work.

Sorry about the confusion, my bad.
I think the new process is documented in the post announcing the first version to include delta's.
But I should fix the first post to make things clear.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Sun 24 Jun 2018, 10:00    Post subject:  

I have updated the first post to include current usage information.
gyro
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3467
Location: Worcestershire, UK

PostPosted: Mon 25 Jun 2018, 04:18    Post subject:  

gyro wrote:
I have updated the first post to include current usage information.
gyro

Thanks @gyro - now works fine.....
Screenshot.png
 Description   
 Filesize   228.38 KB
 Viewed   459 Time(s)

Screenshot.png


_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Mon 25 Jun 2018, 06:05    Post subject:  

peebee wrote:
Thanks @gyro - now works fine.....
Great. Thanks for testing.
gyro
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3467
Location: Worcestershire, UK

PostPosted: Mon 02 Jul 2018, 04:07    Post subject:  

Hi @gyro

Have you had any thoughts on how an experimental woof-ce build might be done to include overlayfs?

Presumably the overlay-mods.sfs would be converted to a .pet and included in the DISTRO_PKG_SPECS ??

and then overlay-setup-frugal would need to be run via
EXTRA_COMMANDS
in
_00build.conf ??

?? or not??

Cheers
peebee

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Fri 06 Jul 2018, 08:46    Post subject:  

@peebee,

All my current methods for producing an "overlay_init" Puppy work outside woof-ce.
"overlay-setup_frugal" converts a normal frugal install to an "overlay_init" frugal install.
"overlay-make-iso" converts a normal iso to an "overlay_init" iso. Unfortunatley this requires the "overlay" module to be loaded, as it merges directories by creating an "overlayfs" stack.

One method of integrating "overlay_init" into woof-ce is to actually include it all into a normal Puppy, with the alternative init being activated by a boot parameter at run time.
I'm not convinced that "bloating" a normal Puppy with all the extra files from "overlay_init" is the best way to proceed.

"overlay_init" consists of an alternative initird.gz (smaller), a number of files that replace existing files in Puppy, and quite a few new files with no equivalent in normal Puppy.

My original idea was that woof-ce would be capable of producing an alternative "initrd.gz" just as it can produce different Puppies.
So, similar to a woof-ce user choosing to build a "upupbb" or "slacko" Puppy, they would be able to choose to build an "aufs" or an "overlay" initrd.gz.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Fri 13 Jul 2018, 21:51    Post subject:  

I have uploaded a delta for upupbb-18.05+8.iso http://www.fishprogs.software/puppy/initrd/upupbb-18.05+8.iso___upupbb_overlay0.9d-18.05+8.iso.delta.

This is just a maintenance release for a newer upupbb, and to fix a couple of minor bugs.

gyro
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 1659
Location: Italy

PostPosted: Sun 15 Jul 2018, 03:49    Post subject:  

gyro wrote:
I have uploaded a delta for upupbb-18.05+8.iso http://www.fishprogs.software/puppy/initrd/upupbb-18.05+8.iso___upupbb_overlay0.9d-18.05+8.iso.delta.


I just did a new frugal install with istructions from here and peebee. All working well for my basic needs. Excuse my ignorance: no multiple savefolders support at boot?

Later: help files in the iso require to be rewrited...
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Mon 16 Jul 2018, 01:49    Post subject:  

watchdog wrote:
I just did a new frugal install with istructions from here and peebee. All working well for my basic needs. Excuse my ignorance: no multiple savefolders support at boot?
Yes there is no such support.
It was something I left till later, but now I find I don't miss it.
I have 2 directories, "pupsaves" (where my savefolders normally reside) and "pupsavesAlt". When I want to try a possibly "dangerous" pet, I run "Saveconfig"->"Folder"->"Select" and select "pupsavesAlt".
On reboot I'm now using a copy of my savefolder in "pupsavesAlt".
When I have finished, I run "Saveconfig"->"Folder"->"Default" to go back to my normal savefolder, which results in a "Cancel", "Replace" or "Keep" dialog, referring to my normal savefolder in "pupsaves".
If the test was successful, I select "Replace". If the test failed, I select "Keep".
No, it's not the same as multi-savefolder support in "init", but unfortunately the result is that real multi-savefolder is currently a low priority.
watchdog wrote:
Later: help files in the iso require to be rewrited...
Yes, again you are correct. And the answer is similar, there always seems to be something more urgent.

PS. Thanks for testing.

gyro
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 797
Location: Connecticut, United States

PostPosted: Sun 22 Jul 2018, 22:38    Post subject:  

I have set up a Puppy Linux Bionic18.05+8 using the OverlayFs and the instructions from this thread.

Code:
title BB18.05+8-OL (sdb1/BB18.05+8-OL)
  uuid 8a8ea99d-a1b0-4c43-b1a0-d4ce5c9c7dfa
  kernel /BB18.05+8-OL/vmlinuz   psubdir=BB18.05+8-OL pdrv=sdb1
  initrd /BB18.05+8-OL/initrd.gz


I used overlay_init_upupbb-0.9.tar.
the OS booted cleanly and upupbb is running great.
DELL INSPIRON E1505
upupbb1805_overlay.png
 Description   
 Filesize   136.39 KB
 Viewed   169 Time(s)

upupbb1805_overlay.png

Back to top
View user's profile Send private message Visit poster's website 
Wyk72


Joined: 01 Sep 2009
Posts: 14

PostPosted: Wed 25 Jul 2018, 20:37    Post subject: UpupBB 18.05+8 + OverlayFS init + kernel 4.17.10 + BTRFS
Subject description: it works!
 

After a whole afternoon studying this (and other) threads on the subject, I managed to assemble (i.e. hack) a working upupbb 18.05+8 on an USB stick formatted with BTRFS.

- I used the info provided in this thread to install upupBB 18.05+8 with overlayFS on a (ext4 formatted) USB stick.

- I compiled the latest stable kernel (4.17.10) with the stemsee script (nubuild.sh) provided in this thread:

http://www.murga-linux.com/puppy/viewtopic.php?t=96723

- I used the change-kernel script provided here by gyro, to install the 4.17.10 vmlinuz/ zdrv sfs (modules)

- I formatted a new USB stick with BTRFS using gparted. Set the "boot" flag.

- booted from another system, copied the whole content of the previous USB stick to the BTRFS formatted one

- Downloaded extlinux from PPM, installed it onto the BTRFS formatted USB stick (mbr too)

- Edited the extlinux.conf with proper UUID values, i.e.:

Default puppy
display boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg
F3 help2.msg

label puppy
kernel vmlinuz
append initrd=initrd.gz uuid=799f112b-800a-4291-b03f-74e999ab75eb pupsfs=799f112b-800a-4291-b03f-74e999ab75eb

- modified the upupbbBOOTspecs file in the root (/) directory of the BTRFS stick with the correct UUID

And that was it Smile

I am testing it now, it looks fine for the most part. I am looking for a way to enable ZSTD file compression, it must be the initial "Mount" command in the init script by gyro.
Screenshot.jpg
Description 
jpg

 Download 
Filename  Screenshot.jpg 
Filesize  230.07 KB 
Downloaded  38 Time(s) 
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 797
Location: Connecticut, United States

PostPosted: Thu 26 Jul 2018, 11:30    Post subject:  

Quote:
After a whole afternoon studying this (and other) threads on the subject, I managed to assemble (i.e. hack) a working upupbb 18.05+8 on an USB stick formatted with BTRFS.



nice! Very Happy
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Thu 02 Aug 2018, 15:02    Post subject:  

@rockedge,
Thanks for testing, good to see it works for you.

I'm just about to upgrade my overlay_init upupbb to upupbb-18.05+10.
I usually do this by simply replacing adrv, fdrv, puppy and ydrv sfs files with those from peebee's new iso.
(Replacing the zdrv just results in "rc.update" doing a whole lot of unnecessary stuff.)

Later: Upgrade to upupbb-18.05+10 worked fine.

gyro

Last edited by gyro on Thu 02 Aug 2018, 15:47; edited 2 times in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Thu 02 Aug 2018, 15:12    Post subject: Re: UpupBB 18.05+8 + OverlayFS init + kernel 4.17.10 + BTRFS
Subject description: it works!
 

Wyk72 wrote:
I am testing it now, it looks fine for the most part.
Hmm.., I've never tried running Puppy on BTRFS, glad it works. Thanks for testing.
Wyk72 wrote:
I am looking for a way to enable ZSTD file compression, it must be the initial "Mount" command in the init script by gyro.
I'm not sure how you expect Puppy to use ZSTD file compression.
If it is supposed to be used for the sfs files, then this depends on the squashfs support within Puppy, not my init script.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1542
Location: Brisbane, Australia

PostPosted: Thu 02 Aug 2018, 15:24    Post subject:  

I like to place unique labels on my partitions, so my grub4dos entry for overlay_init upupbb is:
Code:
title Puppy upupbb 18.05 (sdb2/upupbb)
  uuid 0db94719-cdf1-44b7-9766-23db62fb85a5
  kernel /puppy/upupbb/vmlinuz intel_pstate=disable net.ifnames=0 psfspart=Work psfsdir=/puppy/upupbb
  initrd /puppy/upupbb/initrd.gz
Note the "psfspart=" parameter.

gyro
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 13 of 14 [196 Posts]   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0743s ][ Queries: 12 (0.0220s) ][ GZIP on ]