Page 7 of 9

pupsaveconfig-2.0.1

Posted: Wed 04 Jan 2012, 10:47
by shinobar
pupsaveconfig-2.0.1.pet, sync with woof2 2012-01-03.
See the top post.

Re: pupsaveconfig-2.0.1

Posted: Wed 04 Jan 2012, 16:57
by grimoire
This one works well in lucid 5.28! :)

Posted: Mon 09 Jan 2012, 17:29
by jemimah
Would it be possible to get a patch file for the mods you make to rc.shutdown? I want to add this to saluki, but it's very difficult to keep sync with woof without the original patch. Thanks!

rc.shutdown patch

Posted: Tue 10 Jan 2012, 01:37
by shinobar
jemimah wrote:Would it be possible to get a patch file for the mods you make to rc.shutdown? I want to add this to saluki, but it's very difficult to keep sync with woof without the original patch. Thanks!
@jemimah
Take the attached, but...

It is difficult to maintain with a patch because the rc.shutdown of pupsaveconfig is far from the original.
Maybe there is another difficulty in woof build after Barry introduced his shutdownconfig.

But i always look up the latest rc.shutdown in woof(2) and try to merge.
Everytime I make a diff and merge them manually.
See the comment both of woof and pupsaveconfig.

The pupsaveconfig-2.0.1 syncs with the woof2 at 2012-01-03

Code: Select all

#120103 karl godt: error unmounting stray partitions. 120103 karl godt: more tweaks.

Posted: Tue 10 Jan 2012, 17:37
by jemimah
Thanks. It does seem quite difficult to figure out how to maintain. I will test it.

Posted: Mon 06 Feb 2012, 17:00
by The Kool
I tried this a few times. I start with a completely fresh install of Slacko 531 on a usb, and I set it to never save, which is what I want (I don't even want it to ask). I tell it to shut down, it restarts X instead.

Any help? I really want this working, or at least SOMETHING that will keep it from saving at shutdown.

Posted: Thu 23 Feb 2012, 01:00
by sc0ttman
I too am looking to get some of the latest fixes in the rc.shutdown from woof2 into my rc.shutdown, which is mostly like that of pupsaveconfig 2.0 (soon to be 2.0.1+plus my changes)...

So I would appreciate any patches that are posted to this thread, which contain individual updates found in woof2, made ready to patch into the rc.shutdown of pupsaveconfig releases... I'll post any I make here...

The Kool: look here - http://www.murga-linux.com/puppy/viewto ... 738#383738

Basically, 'snapmergepuppy' is the cmd that saves... disable it, or see the lines above, in more recent rc.shutdown files (supplied by pupsaveconfig)

You can also set SAVE INTERVAL to 0 (zero) in "eventmanager", so puppy won't save automatically while in use...

PupsaveConfig-2.1

Posted: Thu 23 Feb 2012, 12:38
by shinobar
Ok, download pupsaveconfig-2.1.pet as a test release.
syc with woof2 2012-02-19, unmount NFS/SSHFS, EJECTCD flag.
http://shino.pos.to/linux/puppy/

Pupsaveconfig-2.1.1

Posted: Mon 12 Mar 2012, 11:16
by shinobar
Pupsaveconfig-2.1.1
# v2.1.1 1mar12: avoid space in path

014

Posted: Mon 12 Mar 2012, 21:06
by sszindian
Post In Error:

PupsaveConfig-2.1.2

Posted: Fri 06 Apr 2012, 13:53
by shinobar
# v2.1.2 6apr12: fix was EJECTCD not chenger under PUPMODE=13 (thanks to Jades)

PupsaveConfig-2.2pupsaveconfig-2.2.pet

Posted: Tue 10 Apr 2012, 05:34
by shinobar
Long persistent bug!
Was failed with the bootfash comboformat install. Thanks to Ghost Dog who reported this.
pupsaveconfig-2.2.pet from http://shino.pos.to/linux/puppy/ please.

Code: Select all

# v2.2   8apr12: fix was failed with no space partition(tnx to Ghost Dog), fix was failed with SAVEMARK, fix was failed mmc card, default partition and folder, exit 0 (thanks to don)
# v2.2  10apr12: sync with woof 20409, kill acpid (rc.shutdown)
You need not upgrade if you already running puppy with pupsaveconfig. Upgrade is recommended to the pupplet builders or you are going to remaster.
Note for full install: You need to modify /etc/rc.d/rc.sysinit or rc.local to purge /tmp/*. See the detail at Barry's blog.
http://bkhome.org/blog/?viewDetailed=02789

Posted: Sat 14 Apr 2012, 02:10
by jemimah
A little feedback on 2.2.

I always change the notebook dialog back to an hbox. Otherwise some user occasionally reports not being able to find the settings (which are on the second tab). I think it's nicer with one screen too.

I think you should remove 32MB as a size option because a lot of the time if you make a save file that's too small bad things happen on the next boot.

Seems to be working fine in my initial testing. :D

Posted: Sun 15 Apr 2012, 20:59
by Karl Godt
For the pupsave too small this happened to me too now :oops:

I could imagine something like this :

Code: Select all

# diff -up /initrd/pup_ro2/usr/bin/pupsaveconfig /usr/bin/pupsaveconfig
--- /initrd/pup_ro2/usr/bin/pupsaveconfig	2012-04-14 00:52:29.000000000 +0100
+++ /usr/bin/pupsaveconfig	2012-04-15 22:46:58.277478425 +0100
@@ -1496,7 +1496,13 @@ $BUTTONS
    determinsize || continue	# v2.2
   [ "$MSG" = "$MSG0" ] && MSG=$MSG1
   SIZELIST="$MSIZE@MB"
-  for ACHOICE in 64 128 256 512 768 1024 1536 2048	# v2.2: 32MB in choice
+  DU_INITRD_PUP_RW=`du -B 1M -c /initrd/pup_rw |tail -n1 |awk '{print $1}'` #du 1M=1024,1MB=1000
+  VALUES='32 64 128 256 512 768 1024 1280 2048 4096'
+  for val in $VALUES;do
+  [ "$val" -gt "$DU_INITRD_PUP_RW" ] && VALIDS="$VALIDS $val"
+  done 
+  #for ACHOICE in 64 128 256 512 768 1024 1536 2048	# v2.2: 32MB in choice
+  for ACHOICE in $VALIDS
   do
     SIZE=$ACHOICE
     [ $SIZE -gt $MFREE ] && SIZE=$MFREE
This also is an inconvenience-bug in the regular shutdownconfig by Barry :

Code: Select all

# diff -up /initrd/pup_ro2/usr/sbin/shutdownconfig /usr/sbin/shutdownconfig
--- /initrd/pup_ro2/usr/sbin/shutdownconfig	2011-11-10 05:11:50.000000000 +0100
+++ /usr/sbin/shutdownconfig	2012-04-15 22:37:10.343996867 +0100
@@ -63,6 +63,8 @@ else
  BACKGROUNDORANGE=''
 fi
 
+DU_INITRD_PUP_RW=`du -B 1M -c /initrd/pup_rw |tail -n1 |awk '{print $1}'` #M=1024,MB=1000
+
 choosepartfunc() { 
  #dialog to choose what partition to create ${DISTRO_FILE_PREFIX}save.2fs on...
  T_admin="$(gettext 'administrator')"
@@ -274,11 +276,15 @@ Or, \Zb\\\${T_abort}\ZB to shutdown with
 } #end choosepartfunc
 
 choosesizefunc(){
- local KFREE SIZELIST NUM CHOICES FLABEL SLABEL ACHOICE KSIZE
+ local KFREE SIZELIST NUM CHOICES FLABEL SLABEL ACHOICE KSIZE VALUES VALIDS val
  KFREE=$1 ; SIZELIST="" ; NUM=1 ; CHOICES=""
  FLABEL="`expr $KFREE \/ 1024`MB"
  [ $KFREE -ge 1048576 ] && FLABEL="`dc $KFREE 1048576 \/ p`GB"
- for ACHOICE in 32 64 128 256 512 768 1024 1280 2048 4096
+ VALUES='32 64 128 256 512 768 1024 1280 2048 4096'
+ for val in $VALUES;do
+ [ "$val" -gt "$DU_INITRD_PUP_RW" ] && VALIDS="$VALIDS $val"
+ done 
+ for ACHOICE in $VALIDS
  do
   KSIZE=`expr $ACHOICE \* 1024`
   SLABEL="${ACHOICE}MB"
@@ -297,6 +303,7 @@ choosesizefunc(){
  T_sizetitle="$(gettext 'First shutdown: size save-file')"
  T_sitemenu="$(gettext 'Please choose the size you would like for the personal save file.
 Note, 512M is a good choice, or highest if that not available.
+Note, ${DU_INITRD_PUP_RW}M have accumulated in this session .
 Select choice, then click OK button...')"
  ${DIALOGEXE} ${BACKGROUNDYELLOW} ${TITLEPARAM} "$T_sizetitle" --no-collapse --no-cancel --default-item "5" --menu "$T_sitemenu" 0 0 0 $SIZELIST >/dev/console 2>/tmp/sizetag.txt
  NUM=`cat /tmp/sizetag.txt`
This i posted for archive's sake in case this gets lost because pupsave too small :) NOTE: Not tested yet .

Posted: Sun 22 Apr 2012, 19:54
by 01micko
There seems to be a problem in 2.2 if your partitions are numbered > 10. The count is not in order and subsequently partitions in the GUI get the wrong label resulting in a save to the wrong partition (eg, I chose sda1 and the save was found on sda10 :( )

Reported here

Thanks

pupsaveconfig-2.2.1

Posted: Mon 23 Apr 2012, 04:22
by shinobar
Released pupsaveconfig-2.2.1.pet http://shino.pos.to/linux/puppy/
# v2.2.1 23apr12: fix was failed partition number >= 10, dialog shows all options, no choice under MINIMB

For pupplet developers:
If you want to, edit /usr/bin/pupsaveconfig for some ajustables at line 51- :

Code: Select all

# adjustables
EXT4SUPPORT="yes"   # EXT4SUPPORT="" to disable ext4 support ("yes" to support if available)
HIDEADVANCED=""   # 'yes' to hide advanced file options, ''(null) to show all options
WAIT1=120 # in second, time limit before shutdown
MINMB=64      # smallest savefile size in MB, to show smaller than 64
STDMB=512   # standard savefile size
MAXMB=2048   # largest savefile size in choice, to show larger than 2048

pupsaveconfig-2.2.2

Posted: Mon 30 Apr 2012, 08:16
by shinobar
Updated: pupsaveconfig-2.2.2.pet (2012-04-30)
Download from http://shino.pos.to/linux/puppy/.
# v2.2.2 29apr12: deeper layer subdirectory (zekebaby), remove legacy, rc.shutdown: avoid re-login VERBOSE message, wmpoweroff and wmreboot: startxface4 (Saluki compatible)

Posted: Mon 30 Apr 2012, 08:30
by chrome307
Thanks for this :)

killfuse

Posted: Mon 30 Apr 2012, 08:40
by shinobar
For whom interested in the code on the shutdown issue:
The point is not to kill myself nor my parents. This is mortal sin against moral common. :wink:
http://www.murga-linux.com/puppy/viewto ... 766#623766
I suspected the '.fuser -k', and made a function 'killfuser', which checks out the PID. I guess the killzombies has no problem.
/etc/rc.d/rc.shutdown wrote:#29apr12: do not kill myself to avoid re-login
MYPID=$$
PARENT=$PPID
killfuser() {
[ "$1" ] || return
BADPIDS="`fuser -m $1 2>/dev/null`"
[ "$BADPIDS" ] || return
[ "$VERBOSE" = 'debug' ] && echo "MYPID=$MYPID, PARENT=$PARENT"
for ONEBAD in $BADPIDS
do
[ "$ONEBAD" = "$MYPID" ] && continue
[ "$ONEBAD" = "$PARENT" ] && continue
if [ "$VERBOSE" ]; then
echo -n "Killing process $ONEBAD..."
if [ "$VERBOSE" = 'debug' ]; then
echo -n ", or skip(S)? " ; read R
R=$(echo $R | tr 's' 'S' | cut -b1)
[ "$R" = 'S' ] && continue
else
echo > /dev/console
fi
fi
kill $ONEBAD
sleep 1
kill -9 $ONEBAD 2>/dev/null
sync
done
}

Post subject: pupsaveconfig-2.2.2

Posted: Fri 04 May 2012, 16:06
by ETP
Thanks for this essential utility. Currently using it in Slacko 5.3.2.9.