Posted: Thu 17 Oct 2013, 04:59
Here's the pet for you: http://www.smokey01.com/dpup5520/icewm-PRP.pet
READ-ONLY Archive
https://oldforum.puppylinux.com/
Your problem is:williepabon wrote:.. Well, I'm positive that one of the multitude of geeks that exist in this forum will know the answer for my problem
... and you can yourself find the answer I think... and am not too willing to start again.
I tried the solutions as per:Is there a way to accelerate the shut down process? It takes awful long time when the system is saving to the flash drive.
Hope Barry's /usr/sbin/edit-initramfs helps:williepabon wrote:.. open initrd.gz for editing.
Code: Select all
#!/bin/sh
#(c) Copyright Barry Kauler 2012, bkhome.org
#License GPL3 (/usr/share/doc/legal)
#shared-mime-info pkg has assigned initrd.gz mime-type application/initramfs-gz (by me).
#Click on initrd.gz in ROX-Filer, this script will run (see /root/Choices/MIME-types/application_initramfs-gz).
#note: script not internationalized, as this is a developer's tool.
[ ! $1 ] && exit 1
[ ! -f "$1" ] && exit 1
BASEFILE="`basename "$1"`"
[ "$BASEFILE" != "initrd.gz" ] && exit 1
compr_func() {
#find out compression type...
UNCOMPREXE=gunzip; COMPREXE=gzip; EXT=gz
gunzip -t "$1"
if [ $? -ne 0 ];then
UNCOMPREXE=bunzip2; COMPREXE=bzip2; EXT=bz2
bunzip2 -t "$1"
if [ $? -ne 0 ];then
UNCOMPREXE=unxz; COMPREXE=xz; EXT=xz
unxz -t "$1"
if [ $? -ne 0 ];then
return 1
fi
fi
fi
return 0
}
cd /root
[ -f initrd ] && rm -f initrd
[ -f /tmp/initrd.gz ] && rm -f /tmp/initrd.gz
[ "$1" = "/root/initrd.gz" ] && cp -f /root/initrd.gz /tmp/
if [ -d initrd-expanded ];then
pupdialog --background "yellow" --backtitle "initrd.gz: update?" --yesno "An initrd.gz is already expanded at /root/initrd-expanded. Is this correct, do you want to use /root/initrd-expanded to update ${1}?" 0 0
if [ $? -eq 0 ];then
compr_func "$1"
if [ $? -ne 0 ];then
pupdialog --background '#FF8080' --backtitle "initrd.gz: fail" --msgbox "Sorry, could not recognise compression type, unable to update initrd.gz." 0 0
else
cd initrd-expanded
find . | cpio -o -H newc > ../initrd
sync
cd ..
${COMPREXE} initrd
sync
mv -f initrd.${EXT} "$1"
pupdialog --background '#80FF80' --backtitle "initrd.gz: success" --msgbox "File ${1} has been updated with the contents of /root/initrd-expanded." 0 0
fi
fi
pupdialog --background "yellow" --backtitle "initrd.gz: finished" --yesno "Do you want to delete /root/initrd-expanded? If in doubt, please choose Yes" 0 0
if [ $? -eq 0 ];then
rox -D /root/initrd-expanded 2>/dev/null
rm -rf /root/initrd-expanded
fi
else
pupdialog --background "yellow" --backtitle "initrd.gz: expand?" --yesno "Do you want to open up initrd.gz, and optionally edit it?" 0 0
if [ $? -eq 0 ];then
compr_func "$1"
if [ $? -ne 0 ];then
pupdialog --background '#FF8080' --backtitle "initrd.gz: fail" --msgbox "Sorry, could not recognise compression type of ${1}, unable to expand it." 0 0
else
[ "$1" != "/root/initrd.gz" ] && cp -f "$1" /root/
mv -f initrd.gz initrd.${EXT}
${UNCOMPREXE} initrd.${EXT}
[ -f /tmp/initrd.gz ] && mv -f /tmp/initrd.gz /root/
mkdir initrd-expanded
cd initrd-expanded
cat ../initrd | cpio -i -d -m
sync
rm -f ../initrd
cd ..
pupdialog --colors --background '#80FF80' --backtitle "initrd.gz: expanded" --msgbox "File initrd.gz has been expanded at \Zb/root/initrd-expanded\ZB. You may edit the contents if you wish. \Zb\Z1\n\nAfterward, if you click on ${1} again\Zn\ZB, it will be updated with the contents of /root/initrd-expanded." 0 0
rox -d /root/initrd-expanded -x /root/initrd-expanded
fi
fi
fi
[ -f /tmp/initrd.gz ] && rm -f /tmp/initrd.gz
###END###
I would take "esac followed by blanc line ... " around line 911williepabon wrote:.. I found the line esac a number of times in the init script. Now I'm confused where I should insert the PUPMODE=12 statement.
Did you follow the instruction (see image) which is saving the change?williepabon wrote:After some additional experimenting I found out that apparently, PupRescue precise boots with a fresh initrd.gz file. I can modify the file, but after shut down and start up, the modifications to initrd.gz are gone.
I assume you mean PupRescue_2.5.isowimpy wrote:...Has anybody done a frugal install of the puprescue.2.5 iso successfully?
Code: Select all
# Linux bootable partition config begins
title PupRescue 2.5 (on sda11)
rootnoverify (hd0,10)
kernel /pr25/vmlinuz pmedia=atahd pdev1=sda11 psubdir=pr25
initrd /pr25/initrd.gz
# Linux bootable partition config ends
Code: Select all
title distro
find --set-root --ignore-floppies
kernel /iso/distro/vmlinuz psubdir=iso/distro pmedia=atahd pfix=fsck
initrd /iso/distro/initrd.gz
OK, once again you refer to the ISO as: puprescue_2.5.isowimpy wrote:@CatDude Thanks for the reply. I'm using grub4dos and all I do is add the following to menu.lst for each distro that I am testingWorks so far for all distros, except that puprescue_2.5.iso.Code: Select all
title distro find --set-root --ignore-floppies kernel /iso/distro/vmlinuz psubdir=iso/distro pmedia=atahd pfix=fsck initrd /iso/distro/initrd.gz
Fair enough, but it saves any confusion if you refer to it correctly.wimpy wrote:Yes! You're quite right. The iso file I've been using is PupRescue_2.5.iso. I may have referred to it differently above, but it is the same file and the md5sum check is correct.
Correct.wimpy wrote:...You say that you have successfully done a frugal installation of this iso.
I never mentioned anything about using grub4dos, i did say "The following stanza works for me using Legacy Grub:"wimpy wrote:...If you are able to boot it from grub4dos would it not be more appropriate for you to supply your menu.lst entry.
Code: Select all
title PupRescue 2.5 (sdb1/pr25)
find --set-root --ignore-floppies --ignore-cd /pr25/initrd.gz
kernel /pr25/vmlinuz psubdir=pr25 pmedia=usbflash pfix=fsck
initrd /pr25/initrd.gz
title PupRescue 2.5 (sdb1/pr25) RAM mode\nBoot up Puppy without pupsave
find --set-root --ignore-floppies --ignore-cd /pr25/initrd.gz
kernel /pr25/vmlinuz psubdir=pr25 pfix=ram
initrd /pr25/initrd.gz
That's because it is set up to use Grub.wimpy wrote:...Of all the puppy distro isos I've tried this is the only one without a isolinux.bin and a isolinux.cfg.
#start lupu-pupRescue-2.5
LABEL Puppy Rescue 2.5
MENU LABEL Puppy Rescue 2.5
MENU INDENT 1
CONFIG /multiboot/lupu-PupRescue_2.5-YUMI/isolinux.cfg
APPEND /multiboot/lupu-PupRescue_2.5-YUMI/
#end lupu-pupRescue-2.5
#start Precise-PupRescue-YUMI
LABEL Precise Puppy Rescue
MENU LABEL Precise Puppy Rescue
MENU INDENT 1
CONFIG /multiboot/Precise-PupRescue-YUMI/isolinux.cfg
APPEND /multiboot/Precise-PupRescue-YUMI/
#end Precise-PupRescue-YUMI