In:
Box1.enter the name you want for the frugal install. (with no clear spaces in name)
Box2. drag the puppy ISO file into box2
click ok and that is it
Will create new directory > mount ISO > copy .sfs, vmlinuz, initrd files > unmount ISO > and add a Menu entry in Grub1 menu list.
Youtube video: http://www.youtube.com/watch?v=GbYVLeFcFSw
You will probably need to tweek the script, for instance your Grub1 menu entry line 38 - 45 .
Or for the location you wish to make the frugal install to line 9
requires Yad .pet
http://www.murga-linux.com/puppy/viewtopic.php?t=58306
Code: Select all
#!/bin/bash
#stu90 v2
grb="/tmp/grb"
yad --title="Frugal Install" --form --field="OS name" "puppy_linux" --field="ISO File" > $grb
####create directory####
location="/mnt/home/"
select=$(cut -s -d "|" -f 1 $grb)
if [ ! -d "$location$select" ]; then
mkdir $location$select | echo "$location$select Directory created"
else
echo " directory already exists exiting"
exit 0
fi
###mount and copy ISO files####
iso=$(cut -s -d "|" -f 2 $grb)
mnt="/mnt/data"
if [ "$iso" ]; then
mount $iso $mnt -o loop | echo "mounted $iso to $mnt"
find $mnt -maxdepth 1 \( -iname "*.sfs*" -o -iname "vmlinuz*" -o -iname "initrd.gz*" \) -exec cp {} $location$select \;
umount $mnt | echo " ISO files copied to $location$select un mounted $mnt"
else
echo " No ISO file found Exiting"
rm $grb
exit 0
fi
###grub menu list location####
menu="/mnt/home/boot/grub/menu.lst"
###grub menu list entry###
cat >> $menu << EOF
#
# Linux bootable partition config begins
title $select
rootnoverify (hd0,0)
kernel /$select/vmlinuz pmedia=atahd psubdir=$select
initrd /$select/initrd.gz
# Linux bootable partition config ends
#
EOF
echo "Added grub menu entry to $menu"
rm $grb