Author |
Message |
ASRI éducation

Joined: 09 May 2009 Posts: 3203 Location: France
|
Posted: Sat 12 Sep 2015, 22:05 Post subject:
|
|
Argolance wrote: | Quote: | Suggestion: the button "Install SFS" [of filemount] should be labeled "Un/Install SFS" because user can uninstall/unload any SFS file this way too, |
|
This is done for several months.
https://github.com/puppylinux-woof-CE/woof-CE/commit/1ad1fb30be20dfb8e6a9e65066b59f3a067b4c00
https://github.com/puppylinux-woof-CE/woof-CE/commit/a30bd4b00085bfebcd99dfad012ea2a30efa84d1
Regards,
_________________ Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
|
Back to top
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 2031 Location: Israel, somewhere in the beautiful desert
|
Posted: Sun 27 Sep 2015, 06:13 Post subject:
|
|
There's a bug in sfs_load - it should obtain the numeric kernel version using `uname -r | cut -f 1 -d \-`. Otherwise, it doesn't work at all with kernels that have an extra version string.
_________________ My homepage
My GitHub profile
|
Back to top
|
|
 |
ASRI éducation

Joined: 09 May 2009 Posts: 3203 Location: France
|
Posted: Sun 27 Sep 2015, 06:44 Post subject:
|
|
Iguleder wrote: | There's a bug in sfs_load - it should obtain the numeric kernel version using `uname -r | cut -f 1 -d \-`. Otherwise, it doesn't work at all with kernels that have an extra version string. |
Yes, need to replace:
KERNVER="`uname -r`"
by
KERNVER="`uname -r | cut -f 1 -d \-`"
Thank you.
_________________ Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
|
Back to top
|
|
 |
ASRI éducation

Joined: 09 May 2009 Posts: 3203 Location: France
|
Posted: Sun 04 Oct 2015, 09:46 Post subject:
|
|
sfs_load-2.3.3
I incorporated:
- sfs_load-2.3 (by shinobar)
- sfs_load-2.3.0 (by ASRI)
- sfs_load-2.3.2 (by mavrothal)
- improve kernel detection KERNVER (by Iguleder)
Regards,
Description |
|
Filesize |
47.22 KB |
Viewed |
952 Time(s) |

|
Description |
|

Download |
Filename |
sfs_load-2.3.3.pet |
Filesize |
34.12 KB |
Downloaded |
467 Time(s) |
_________________ Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Last edited by ASRI éducation on Sun 04 Oct 2015, 15:14; edited 1 time in total
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 15041 Location: Gatineau (Qc), Canada
|
Posted: Sun 04 Oct 2015, 12:38 Post subject:
|
|
ASRI éducation wrote: | sfs_load-2.3.3
This version is based on:
- sfs_load-2.3 (by shinobar)
- sfs_load-2.3.0 (by ASRI)
- sfs_load-2.3.2 (by mavrothal)
- improve kernel detection KERNVER (by Iguleder)
Regards, |
Hello, ASRI.
Sorry, I have to translate to understand... "Based on", you mean
"incorporates", right?
Also, if you could kindly look over the translation I made for 01micko's
change-kernels script. It's in that thread.
I translated to "international French", but I'd like to have an European
editor go over it, to make double sure there are no "canadianisms". If
you can't, that's fine, I'll ask someone else.
Thanks.
musher0
_________________ musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
|
Back to top
|
|
 |
ASRI éducation

Joined: 09 May 2009 Posts: 3203 Location: France
|
Posted: Sun 04 Oct 2015, 15:12 Post subject:
|
|
musher0 wrote: | Sorry, I have to translate to understand... "Based on", you mean "incorporates", right? |
That's it.
Thank you for pointing that out, I'll edit my previous message.
musher0 wrote: | look over the translation I made for 01micko's
change-kernels script. It's in that thread |
I just do it, everything seems ok.
Regards,
_________________ Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
|
Back to top
|
|
 |
mavrothal

Joined: 24 Aug 2009 Posts: 3108
|
Posted: Fri 09 Oct 2015, 05:03 Post subject:
|
|
As reported sfs_load in PUPMODE=5 fails to install as SFS saved in /tmp (ok when saved in other locations)
The problem is that the union (re)mount fails in this case. I think that this may be the expected behavior of aufs but it needs further investigation.
Till then the attached patch stops sfs_load from loading an SFS from /tmp or suggesting to copy it there when running in pupmode 5
The patch is against ASRI's 2.3.3 but should work in other versions too.
Code: | --- a/usr/sbin/sfs_load 2015-10-04 15:25:30.000000000 +0300
+++ b/usr/sbin/sfs_load 2015-10-09 11:45:01.760463314 +0300
@@ -885,7 +885,7 @@
local TOPPART="$1"
# Offer RAM only if enough
RAMPART=""
- if [ "$FILEISAT" != "tmpfs" -a "$FILEISAT" != "ata" ]; then
+ if [ "$FILEISAT" != "tmpfs" -a "$FILEISAT" != "ata" -a "$PUPMODE" != "5" ]; then
RAMPART=$(echo "RAM|($(gettext "Available"):$(kbyte2 $RFREE))"|tr ' ' '_')
REST=$(($RFREE - $FILESIZE))
if [ $REST -gt $RESERVRAM ]; then
@@ -1697,7 +1697,7 @@
DIRNAME=$(dirname "$EXTRASFS")
FILENAME=$(basename "$EXTRASFS")
#if echo "$DIRNAME" | grep -qw '/tmp$' || [ "$(df "$DIRNAME" | tail -n 1 | cut -d ' ' -f1)" = "tmpfs" ]; then
- if [ "$(df "$DIRNAME" | tail -n 1 | cut -d ' ' -f1)" = "tmpfs" ]; then
+ if [ "$(df "$DIRNAME" | tail -n 1 | cut -d ' ' -f1)" = "tmpfs" -a "$PUPMODE" != "5" ]; then
rm -f "$EXTRASFS"
RMLOG=$(printf "$(gettext "The temporary file '%s' is deleted.")" "$EXTRASFS")
FOUND=""
@@ -1734,6 +1734,14 @@
basename "$0" | grep -q '^un' && ACTION="unload"
[ "$DISPLAY" != "" ] && GUI="y"
basename "$0" | grep -q 'debug' && DEBUGFLAG="y" # v1.3.9
+
+# Temp work around. Do not mount SFS from /tmp when running in pupmode 5
+. /etc/rc.d/PUPSTATE
+if [ "$(echo $ORGOPT | cut -f2 -d/)" = "tmp" -a "$PUPMODE" = "5" ]; then
+ Xdialog --title "$(gettext 'Error')" --msgbox \
+ "$(gettext 'You can not install an SFS saved in the /tmp directory \nwhen running in PUPMODE=5')" 0 0
+ exit 0
+fi
#v1.9.2: allow --skip-fixmenus with multiple files
while [ "$1" ] ; do
case "$1" in
|
Since the forum may add spaces at the end of the lines, it is also attached below.
Description |
Patch to stop loading SFSs saved in /tmp when running in PUPMODE=5
|

Download |
Filename |
sfs_load.patch.gz |
Filesize |
842 Bytes |
Downloaded |
396 Time(s) |
_________________ == Here is how to solve your Linux problems fast ==
|
Back to top
|
|
 |
ASRI éducation

Joined: 09 May 2009 Posts: 3203 Location: France
|
Posted: Fri 09 Oct 2015, 12:08 Post subject:
|
|
mavrothal wrote: | sfs_load in PUPMODE=5 fails to install as SFS saved in /tmp (ok when saved in other locations) |
Thank you for the patch (sfs_load.patch.gz).
_________________ Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
|
Back to top
|
|
 |
jplt

Joined: 12 Nov 2010 Posts: 282 Location: Terre
|
Posted: Sat 24 Oct 2015, 06:14 Post subject:
|
|
Is there a way to launch an sfs file with this :
Code: | sfs_load -c -q xxx.sfs |
And then have a box that say "The software is launching" and then launch the software ?
I want to do this because i found annoying to click on x box to launch an sfs file .
_________________ Precise , Tahr
|
Back to top
|
|
 |
peebee

Joined: 21 Sep 2008 Posts: 4391 Location: Worcestershire, UK
|
Posted: Sat 24 Oct 2015, 09:38 Post subject:
|
|
jplt wrote: | Is there a way to launch an sfs file with this :
Code: | sfs_load -c -q xxx.sfs |
And then have a box that say "The software is launching" and then launch the software ?
I want to do this because i found annoying to click on x box to launch an sfs file . |
My script to load the wine sfs and then run irfanview called from a desktop file:
Code: | #!/bin/sh
# Purpose: To convert Linux-style filename to Windows-style
# to pass as an argument to Irfanview within wine
sfs_load -n -c wine.sfs
Filename=${1//\//\\}
wine "C:\Program Files\IrfanView\i_view32.exe" "$Filename"
sleep 8
sfs_load -n -c -wine.sfs
sfs_load -n -c -wine.sfs & |
You could add a yaf-splash message if you need one...
_________________
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
|
Back to top
|
|
 |
mavrothal

Joined: 24 Aug 2009 Posts: 3108
|
Posted: Sun 25 Oct 2015, 06:28 Post subject:
sfs_load-2.3.5 |
|
Here is an updated version of sfs_load that is based on ASRI's version, plus the pupmod 5 patch abpve plus some code to warn if you try to unload the (new) fdrv sfs
Description |
|

Download |
Filename |
sfs_load-2.3.5.pet |
Filesize |
29.54 KB |
Downloaded |
403 Time(s) |
_________________ == Here is how to solve your Linux problems fast ==
|
Back to top
|
|
 |
ASRI éducation

Joined: 09 May 2009 Posts: 3203 Location: France
|
Posted: Sun 25 Oct 2015, 08:15 Post subject:
Re: sfs_load-2.3.5 |
|
mavrothal wrote: | Here is an updated version of sfs_load that is based on ASRI's version, plus the pupmod 5 patch abpve plus some code to warn if you try to unload the (new) fdrv sfs |
Thank you mavrothal.
_________________ Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2674 Location: Japan
|
Posted: Mon 26 Oct 2015, 21:15 Post subject:
Re: sfs_load-2.3.5 |
|
mavrothal wrote: | Here is an updated version of sfs_load that is based on ASRI's version, plus the pupmod 5 patch abpve plus some code to warn if you try to unload the (new) fdrv sfs |
Thank you all for developing.
sfs_load-2.3.5.pet could not install on Puppy-571JP, but extracted and re-created package can be installed.
As for the "Total of mounted SFS", does not work in some case because the file /tmp/sfs_load/loop_device_list is not always created.
Next is my patch.
Code: | # diff sfs_load235 sfs_load
773,780c773
< list="/tmp/sfs_load/loop_device_list"
< cntsfsloaded=0
< while read LINE
< do
< if [ "$LINE" != "" ]; then
< cntsfsloaded=`expr $cntsfsloaded + 1`
< fi
< done < "$list"
---
> cntsfsloaded=$(echo $LOADEDLIST|wc -w) |
_________________ Work around Puppy Linux http://shinobar.net/linux/puppy.html
|
Back to top
|
|
 |
mavrothal

Joined: 24 Aug 2009 Posts: 3108
|
Posted: Mon 26 Oct 2015, 23:37 Post subject:
Re: sfs_load-2.3.5 |
|
shinobar wrote: | sfs_load-2.3.5.pet could not install on Puppy-571JP, |
Ah, this is because in recent pups dir2pet defaults to xz compression that is problematic with older pups.
Here is 2.3.6 that includes your change above and is compressed with gzip. Should work fine in older pups too.
Maybe is time to stop this sublevel versions and you release a new minor version
Description |
|

Download |
Filename |
sfs_load-2.3.6.pet |
Filesize |
35.42 KB |
Downloaded |
350 Time(s) |
_________________ == Here is how to solve your Linux problems fast ==
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2674 Location: Japan
|
Posted: Wed 28 Oct 2015, 00:43 Post subject:
Re: sfs_load-2.3.6 |
|
mavrothal wrote: | Here is 2.3.6 |
Thanks. But it fails unloading SFS. Next is my patch.
Code: | # diff sfs_load236 sfs_load
2322c2322,2324
< [ "$FILENAME" = "$DISTRO_FDRVSFS" ] && confirm --ok-cancel "$(gettext "'$FILENAME' contains additional firmware that maybe needed. Are you sure you want to remove it?")" || finish
---
> if [ "$FILENAME" = "$DISTRO_FDRVSFS" ]; then
> confirm --ok-cancel "$(gettext "'$FILENAME' contains additional firmware that maybe needed. Are you sure you want to remove it?")" || finish
> fi |
_________________ Work around Puppy Linux http://shinobar.net/linux/puppy.html
|
Back to top
|
|
 |
|