sfs_load-2.4 on-the-fly

Miscellaneous tools
Message
Author
gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

whiteout file problem

#286 Post by gyro »

@shinobar,
Just in case it gets missed in all the chatter in the slacko6 discussion, I hope this comment helps. http://murga-linux.com/puppy/viewtopic. ... &start=371
gyro[/code]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-2.0.12

#287 Post by shinobar »

Download: http://shino.pos.to/linux/puppy/
Testing: sfs_load-2.0.12.pet
#8 Jul 2014 v2.0.12: no extra sfs but layers can be changed, rewrite cleanwhite, WIPEWHITEONINIT, PUPMODE7SUPPORT
FIX by SFR: http://www.murga-linux.com/puppy/viewto ... &start=419
/usr/sbin/sfs_load line 1195:

Code: Select all

$MYTMPDIR/cleanup /initrd/$SLAYER $PARAM	
is to be

Code: Select all

$MYTMPDIR/cleanup /initrd$SLAYER $PARAM
Made for Slacko 6.0 beta(Slacko-5.9.3.6), but may work with any puppy.

NOTE on whiteout:
The whiteout need different treatment depends on the PUPMODE, typically next 3:
1) PUPMODE=5 or PUPMODE=12
2) PUPMODE=13 and RAMSAVEINTERVAL>0
3) PUPMODE=13 and RAMSAVEINTERVAL=0
Report with what PUPMODE you have tested.
As for the RAMSAVEINTERVAL=0 is a special case. We may have to clarify its specification... :?
Last edited by shinobar on Tue 08 Jul 2014, 23:49, edited 1 time in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

PUPMODE=6 and 7

#288 Post by shinobar »

shinobar wrote:cleanwhite, WIPEWHITEONINIT, PUPMODE7SUPPORT
PUPMODE=6 is supported with this sfs_load, almost same as PUPMODE=12.
PUPMODE=7 is not supported as the defaulet. The default action for PUPMODE=7 is install like a pet, same as PUPMODE=2.

Set the PUPMODE7SUPPORT 'true', editing /usr/sbin/sfs_load, if you want to test PUPMODE=7 support same as PUPMODE=13.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-2.0.13

#289 Post by shinobar »

http://shino.pos.to/linux/puppy/
Testing: sfs_load-2.0.13.pet
#12 Jul 2014 v2.0.13: cleanwhite fix(SFR)
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-2.1

#290 Post by shinobar »

Download: http://shino.pos.to/linux/puppy/
Stable: sfs_load-2.1.pet (2014-07-16)
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-2.1.8

#291 Post by shinobar »

Download: http://shino.pos.to/linux/puppy/
Testing: sfs_load-2.1.8.pet (2014-07-27)
#v2.1.8: all extra sfs by sfs_load not by initramfs

I also suggest to update pman to make fixmenu fast:
pman-2.3.pet from the same place.

sfs_load-2.1.8 modifies /etc/rc.d/rc.sysinit by the pinstall.sh.

Code: Select all

--- rc.sysinit.org   2014-07-09 06:41:42.000000000 +0900
+++ rc.sysinit   2014-07-26 17:51:18.266657221 +0900
@@ -583,6 +583,8 @@
 
 status_func 0
 
+[ -d /initrd ] && [ -x /etc/init.d/sfs_load ] && /etc/init.d/sfs_load start
+
 ##############USER SELECTED MODULES##################
 echo "USER SELECTED MODULES"
 #the user can select extra modules to load in the BootManager..
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-2.1.9

#292 Post by shinobar »

Download: http://shino.pos.to/linux/puppy/
Testing: sfs_load-2.1.9.pet (2014-08-03)
#v2.1.9: fix loop device conflict with irregular initramfs
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-2.2 released

#293 Post by shinobar »

UPDATE:
Download: http://shino.pos.to/linux/puppy/
Most recebt: sfs_load-2.2.pet (2014-08-10)

#v2.1.8: all extra sfs by sfs_load not by initramfs
#v2.1.9: fix loop device conflict with irregular initramfs
#2014-08-10 v2.2: fix was removed all sfs after abnormal shutdown
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-2.3

#294 Post by shinobar »

Download: http://shino.pos.to/linux/puppy/
Most recent: sfs_load-2.3.pet (2014-09-06)
#2014-09-06 v2.3: fix again save-to-directry, avoid always mounted puppy sfs partition under PUPMODE=5
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: sfs_load-2.3

#295 Post by ASRI éducation »

shinobar wrote:sfs_load-2.3.pet (2014-09-06)
#2014-09-06 v2.3: fix again save-to-directry, avoid always mounted puppy sfs partition under PUPMODE=5
Thank you shinobar !
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#296 Post by 666philb »

hi shinobar,

tahrpup 6.0.1 ext4 partition
when trying to grab an url with sfs_load i'm getting this 'not enough space error'
Attachments
sfs_load.png
(83.17 KiB) Downloaded 355 times
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#297 Post by Geoffrey »

666philb wrote:hi shinobar,

tahrpup 6.0.1 ext4 partition
when trying to grab an url with sfs_load i'm getting this 'not enough space error'
The problem is there are two instances of "Length:"

Code: Select all

Content-Length: 9678848 Length: 9678848 (9.2M) [application/vnd.spotfire.sfs]
Both are combined 9678848967884892

Edit line 988 in sfs_load and add -m 1 so only the first instance is read.

Code: Select all

 SIZEB_ONLINE=$(grep -m 1 'Length: ' "$myLOG"| cut -d':' -f2| tr -dc '0-9')
Better still maybe just read the "Content-Length:"

Code: Select all

 SIZEB_ONLINE=$(grep 'Content-Length: ' "$myLOG"| cut -d':' -f2| tr -dc '0-9')
:)
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#298 Post by 666philb »

only just noticed this

thanks Geoffrey!
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

OT - understanding how sfs load works

#299 Post by peebee »

My apologies that this is a bit off-topic, but thought this was the best thread to ask this question.....

Just trying to understand how sfs load behaves when the sfs contains an executable that already exists on the system.

Attached is a test sfs (with false .gz) that contains a single file - /usr/sbin/partview

The sfs loads without problem and afterwards there are 2 instances of partview - the original in /initrd/pup_ro2 and the one from the sfs in /initrd/pup_ro4

However, the one that is executed remains the original one in pup_ro2 whereas in my naive understanding I would expect the new version from the sfs to be seen/replace the original and be executed.

Is there a description of sfs loading anywhere that I can read so that I can understand what is going on better?

Thanks for any assistance.
Cheers
peebee

p.s. test environment is a pristine, manual, frugal install of Slacko5.7 with no savefile

p.p.s if more appropriate please send me a pm rather than hijack any further this thread.....
Attachments
testsfs.sfs.gz
(4 KiB) Downloaded 280 times
Screenshot_2015-01-14_193018.png
(113.47 KiB) Downloaded 205 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#300 Post by mikeb »

peebee...the puppy way is to add sfs under the main sfs ... and thats the result.

Mike

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

#301 Post by LazY Puppy »

SFS Modules loaded with shinobar's sfs_load are loaded into a lower layer, so the main SFS stays on top of all SFS Modules. To have contents of a loaded SFS Modules on top of the main SFS, there is a Script by mikeb in the second Post of this topic to load SFS Modules to a top layer.
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:

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#302 Post by mavrothal »

Sfs_load completely fails to load SFSs in pupmode 6.
Given that it now handles all the extra sfs in place of the boot manager it means that there is no way to load any extra SFSs in pupmode 6.
With the availability of savefolder, pupmode6 may not be so useful, however is still a puppy mode...
So would be nice if it is fixed or atleast stop handling SFSs in pupmode 6 and allow the job to be done by the bootmanager with something like this

Code: Select all

--- a/etc/init.d/sfs_load	2014-07-22 11:11:10.000000000 +0300
+++ b/etc/init.d/sfs_load	2015-01-28 11:23:11.000000000 +0200
@@ -1,5 +1,7 @@
 #!/bin/sh
 which sfs_load &>/dev/null || exit 0
+. /etc/rc.d/PUPSTATE 
+[ "$PUPMODE" = "6" ] && exit 0
 if [ "$1" = "stop" ] ; then
   exec sfs_load --cli stop
 fi
(actually it works fine to load SFSs with the bootmanager at startup)
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#303 Post by ASRI éducation »

To facilitate the participation of French-speaking users, I created a thread sfs_load on-the-fly : contributions et améliorations
Regards,
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#304 Post by ASRI éducation »

I use a lot of sfs files.

This prompts me to propose some changes to the main interface of sfs_load.

- Increasing the size of the interface.
- Added information "number of sfs mounted".
- For the list of mounted sfs, use of a "table" (instead of "list") to sort the list alphabetically.

If you want to test ...

Regards
Attachments
sfs_load_84_mounted.png
(75.74 KiB) Downloaded 959 times
sfs_load_20150215.tar.gz
/usr/sbin/sfs_load (version 20150215)
(28.89 KiB) Downloaded 367 times
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#305 Post by ASRI éducation »

The limit of Puppy mount points (pup_ro *) seems to be 125. This is obviously more than we need.

More information on the French forum http://www.murga-linux.com/puppy/viewto ... 648#828648

Regards,
Attachments
sfs_load_122_mounted.png
(132.63 KiB) Downloaded 891 times
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

Post Reply