StemseeS-Remastering-Suite-V5.4 pet 22/05/15

Under development: PCMCIA, wireless, etc.
Message
Author
stemsee

#41 Post by stemsee »

Ah HA

I forgot to mention the dependencies - elinks and Yad newer is better

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#42 Post by slavvo67 »

Stemsee

Again, I revisit your thread! I was thinking, how great to store all of my .iso files in the same format as Barry's .xz files to install directly to USB using Barry's installer.

Looks like I can get there with your tools. I'm having a new looksie...

Best,

Slavvo67

stemsee

#43 Post by stemsee »

@slavvo67

Glad to hear it has other uses.

I just started working on parts of sfs-unattended-remaster today. Namely, menu option 7b (savefile resize on the fly) which now works perfectly in the bat of an eye, and updates /etc/rc.d/pupsave.conf with new size in bytes. Must restart X to re-enable the savefile space icon in the tray, but that isn't needed for it to work. In fact I don't know how to make the tray icon update the new savefile size except reboot.


from line 649 onwards

Code: Select all

		b) echo "Enter resize value e.g. 50"
		read rs
		umount -l /initrd/pup_rw
		if [[ -f /mnt/home/$SAVEFILE ]]; then
		SAVEPART=home
		elif [[ -f /mnt/Home/$SAVEFILE ]]; then
		SAVEPART=Home
		elif [[ -f $path$SAVEPART$SAVEFILE ]]; then
		SAVEPART=$SAVEPART
		fi
		dd if=/dev/zero bs=1M count=$rs >> $path$SAVEPART$SAVEFILE
		sync
		sed -i '4d' /etc/rc.d/pupsave.conf
		SIZEPFILE2=`stat $path$SAVEPART$SAVEFILE | grep -e 'Size' | cut -f2 -d ':' | cut -f2 -d ' '`
		sed -i '4iSIZEPFILE='$SIZEPFILE2'' /etc/rc.d/pupsave.conf
		xn=`echo $SAVEFILE | cut -f2 -d '.' | cut -f1 -d 'f'`
		mount -t ext"$xn" $path$SAVEPART$SAVEFILE /initrd/pup_rw
		gtkdialog-splash -text "Restart X to update icon in  tray."
		$rtn2menu && exit;;

stemsee

#44 Post by stemsee »

Due for a rewrite.

I want to add reverse sync with apupsys to update a running system. I also wish to integrate sukk (stems-unattended-kernel-kompiling) into the suite to proved kernel upgrade path, or maybe just include wget line to download kernel package...or both! Also make clear the install function that exists in its functions.

Time to confer the ability to produce an iso on sfs-direct-remaster. And to remaster rufwoofs humungous initrd. And upgrade modules into lighthouse initrd automatically.

stemsee

#45 Post by stemsee »

If you wish to perform a remaster of April 7.0 you will need to edit /etc/DISTRO_SPECS and add 'DISTRO_PUPPYSFS=q.sfs' without the quotes.

You will have to manually update initrd.q but I will update the script to repack the initrd.q aswell.

User avatar
sketchman
Posts: 294
Joined: Thu 01 Jun 2006, 17:20
Location: West Virginia, USA

#46 Post by sketchman »

It's still giving me weird issues. It built an iso this time, but it still did not make an sfs. It just copied the apupsys dir into the iso instead. It also did not copy the kernel to the iso.

I used option 8 on a full HD install.
"In a world that exists without walls and fences, who needs Windows and Gates?"

stemsee

#47 Post by stemsee »

which partition is the install on (sda2 ?) or the entire sda hdd? Give more info/details.

. I recommend option 10 = sfs-direct-remaster.

User avatar
sketchman
Posts: 294
Joined: Thu 01 Jun 2006, 17:20
Location: West Virginia, USA

#48 Post by sketchman »

Install is on sdb1 and the iso is built on sdc1.

I'll try 10 when I get the chance later today.
"In a world that exists without walls and fences, who needs Windows and Gates?"

stemsee

#49 Post by stemsee »

SRS-v5 accomodates April. q.sfs
removed code for rc.local
added 'growisofs -speed=8'

https://mega.co.nz/#!oJplASiC!1xoagNfBI ... 8jUM67Piks

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#50 Post by slavvo67 »

Is #6 supposed to create a bootable USB from an ISO? I was having a bit of trouble there trying to do so with 3 Headed Dog. Can you detail this a little more?

Thanks,

Slavvo67

stemsee

#51 Post by stemsee »

open /usr/sbin/sfs-unattended-remaster from line 558 edit to look like this:

Code: Select all

echo "Enter the usb device; eg sdb"
			read usb
			umount /dev/$usb
			isohybrid $niso
			dd if="$path""$pth1""$niso" of=/dev/$usb bs=4M
			sync
			sleep 1
			parted /dev/"$usb"1 set boot on
			sleep 1
			mount /dev/"$usb"1
			echo "Finished!"
			sleep 2
                       $rtn2menu && exit;;
and from line 609

Code: Select all

 6) echo "Enter 'usb partition iso' eg 'sdb sda5 /my-folder/new-Slacko-8.8.iso'
NB: If you choose to make the iso a hybrid back it up first."
			read usb part iso 
			umount /dev/$usb
			mount /dev/$part "$path""$part"
			#echo "Gparted will open for you to prepare your usb device. When ready close gparted."
			#gparted /dev/$usb
			echo "Make the iso a hybrid? y or n?"
			read hybrid
			if [[ "$hybrid" = y ]]; then
				isohybrid "$path""$part""$iso"
                                dd if="$path""$part""$iso" of=/dev/"$usb" bs=4M
			else
				dd if="$path""$part""$iso" of=/dev/"$usb" bs=4M
			fi
			parted /dev/"$usb"1 set boot on
			echo "Finished!"
			$rtn2menu && exit;; 
I don't remember how the parted code got omitted. But it had a bug which I see now as parted requires partition (sdb1) but dd only device (sdb).

stemsee

#52 Post by stemsee »

Stems-remastering-Suite-V5.1.pet utils fixed!
Attachments
SRS-v5.1.pet.link.gz
(74 Bytes) Downloaded 451 times

stemsee

#53 Post by stemsee »

V5.2

addded 2 items and reinstated RW utils.
Attachments
capture32520.jpg
(38.11 KiB) Downloaded 624 times

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#54 Post by slavvo67 »

Stemsee,

So to clarify, item 6 should make an iso into a bootable USB? To save space, would you consider having it make a bootable USB without creating an iso file first? It seems all the files are already there without having the iso.

Also, can you consider adding about 5 seconds to the unattended for those slow readers like me?

Thanks and thanks!!

Slavvo67

stemsee

#55 Post by stemsee »

Yeah, it's a good idea!

stemsee

#56 Post by stemsee »

Anyway I had problems remastering quirky April 7.03 so I cut a version of sfs-direct-remaster script down for April only. Repacks initrd.q, works only in ram.

So you still need to install the suite then replace /usr/sbin/sfs-direct-remaster with this version.
Attachments
sfs-direct-remaster.txt.gz
fake .gz
(7 KiB) Downloaded 412 times

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#57 Post by slavvo67 »

I had problems unzipping the following:

Posted: Fri 10 Apr 2015, 05:41 Post subject:
Stems-remastering-Suite-V5.1.pet utils fixed!

SRS-v5.1.pet.link.gz
Description
gz

Download
Filename SRS-v5.1.pet.link.gz
Filesize 74 Bytes
Downloaded 18 Time(s)
Back to top
View user's profile Send private message MSN Messenger

stemsee

#58 Post by stemsee »

It is a fake gz that means you only rename the file be deleting '.txt.gz'

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#59 Post by slavvo67 »

Cheater! :wink:

gcmartin

#60 Post by gcmartin »

Would it matter if the running system is DVD/Frugal based OR full install version (USB/HDD) for April64-703?

Post Reply