How To: Make progress bars appear for multiple-partition tasks
-
Ok, I’ll try it.
Thank you very much.
-
I moved this to tutorials and edited the code block to make it easier to see what needs to be changed. Thanks to the original author, I think their name got lost to the old forums or I just can’t find it.
I can verify this works for my FOG 0.32 setup on Ubuntu 10.04, but since it’s a FOG script thing, it should work on just about any other OS you can run FOG on.
-
Hello,
How can I change the “fog” file within the init.gz? Do I have to extract the init.gz and edit the file? This is what I’ve tried so far, but when I want to open the extracted init file it just shows me strange symbols. -
Going to the Wiki page and doing a search for Changing inti.gz found this result.
[url]http://www.fogproject.org/wiki/index.php/Modifying_the_Init_Image[/url]
It show you what you want to know.
-
Hey Lee, sorry I didn’t see that you had that link under your code post. So Snorty, did you run through the tutorial and are still having issues?
-
Thank you, Jason!
I should use this good Wiki more often.Edit: No, I didn’t go through the tutorial yet. Because I’m a little bit under pressure, I’ve just asked how to modify it in this forum. I’ll use your link now, thank you.
-
I was just making sure that it wasn’t something the tutorial missed. I seem to always go back to that tutorial also, so you’re not alone! I hope it helps!
-
The Tutorial explains everything I need to know, so it’s all fine
I just didn’t see Lee’s link. -
I also wanted to make it so that it showed the progress while uploading. It doesn’t show the status bar until about 14 seconds into the upload, but this makes it work for the multi partition choices. To do so I added the following:
First Add was around line 997
[CODE] if [ -n “$disk” ]
then
#Added from the fix for mps and mpa deploying to fix uploading status bar.
export FOGSTATS=“1”;
fog.statusreporter $mac $web &
macWinSafe=echo $mac | sed 's/://g'
;
echo -n " * Preparing backup location…";[/CODE]Second Add was around line 1032
[CODE] mkfifo /tmp/pigz1
partNum=${part:$diskLength};
echo " * Processing Partition: $part (${partNum})“;
sleep 1;
#Added from the fix for mps and mpa deploying to fix uploading status bar.
export FOGSTATS=“1”;
fog.statusreporter $mac $web &
imgpart=”${tmpBackupPath}/d1p${partNum}.img";
pigz -p $cores $PIGZ_COMP < /tmp/pigz1 > $imgpart &
#Added from the fix for mps and mpa deploying to fix uploading status bar.
#Added 2>/tmp/status.fog on the next line.
partimage save $part /tmp/pigz1 --volume=9900000000 -z0 -o -d -f3 -b -c 2>/tmp/status.fog
mv ${imgpart}.000 ${imgpart} 2>/dev/null
chmod -R 777 $tmpBackupPath 2>/dev/null[/CODE]Third Add was around line 1076
[CODE] echo -n " * Preparing backup location…“;
#Added from the fix for mps and mpa deploying to fix uploading status bar.
export FOGSTATS=“1”;
fog.statusreporter $mac $web &
macWinSafe=echo $mac | sed 's/://g'
;
tmpBackupPath=”/images/$macWinSafe";[/CODE]Fourth Add was around line 1123
[CODE] mkfifo /tmp/pigz1
partNum=${part:$diskLength};
echo " * Processing Partition: $part (${partNum})“;
sleep 1;
#Added from the fix for mps and mpa deploying to fix uploading status bar.
export FOGSTATS=“1”;
fog.statusreporter $mac $web &
imgpart=”${tmpBackupPath}/d${intDisk}p${partNum}.img";
pigz -p $cores $PIGZ_COMP < /tmp/pigz1 > $imgpart &
#Added from the fix for mps and mpa deploying to fix uploading status bar.
#Added 2>/tmp/status.fog on the next line.
partimage save $part /tmp/pigz1 --volume=9900000000 -z0 -o -d -f3 -b -c 2>/tmp/status.fog
mv ${imgpart}.000 ${imgpart}
chmod -R 777 $tmpBackupPath[/CODE] -
Hey Jason,
can you upload your finished file please? my try causes the machine to reboot
I have fog 0.32 do you use the same?
Since i cannot be sure if the position you mentioned are right all my trys went into a reboot of the test machine.Greetz X23
-
This is my fog file from tftpboot\fog\images\ and within the extracted init.gz file. I think it only has the Multi fix for the progress bar with uploading and downloading. Just use the line numbers I put to find where I have my code put in. Hopefully this helps, it is nice to have the multi progress bar in the GUI for uploading images now.
[url=“/_imported_xf_attachments/0/321_fog.zip?:”]fog.zip[/url]
-
Hi,
[quote=“Jason Garrison, post: 12228, member: 1188”]This is my fog file…[/quote]
thank you jason
I will compare the original file against yours with a comparision tool and post the accurate changes in form of search for xy append before or something so no confusion should happenGreetz X23
-
Hi,
these are the changes i found:
[B]==========================Change 1==========================[/B]
[IMG]http://i.imgur.com/Czb26ws.png[/IMG][B]==========================Change 2==========================[/B]
[IMG]http://i.imgur.com/WWLRp1D.png[/IMG][B]==========================Change 3==========================[/B]
[IMG]http://i.imgur.com/ySnh8cj.png[/IMG][B]==========================Change 4==========================[/B]
[IMG]http://i.imgur.com/wlHPUlK.png[/IMG][B]==========================Change 5==========================[/B]
[IMG]http://i.imgur.com/0N6GeHC.png[/IMG]Anyway your file works
Greetz X23
-
[quote=“x23piracy, post: 12240, member: 3982”]Hi,
these are the changes i found:
[B]==========================Change 1==========================[/B]
[IMG]http://i.imgur.com/Czb26ws.png[/IMG][B]==========================Change 2==========================[/B]
[IMG]http://i.imgur.com/WWLRp1D.png[/IMG][B]==========================Change 3==========================[/B]
[IMG]http://i.imgur.com/ySnh8cj.png[/IMG][B]==========================Change 4==========================[/B]
[IMG]http://i.imgur.com/wlHPUlK.png[/IMG][B]==========================Change 5==========================[/B]
[IMG]http://i.imgur.com/0N6GeHC.png[/IMG]Anyway your file works
Greetz X23[/quote]
-
What’s suppose to be in the init.gz file? I see the init file inside of mine, am i suppose to download the fog.zip file & overwrite the init.gz file ? or do i take out the fog file & add that to my init.gz file?
As you can see i’m confused on this one
-
[quote=“The Dealman, post: 12945, member: 53”]What’s suppose to be in the init.gz file? I see the init file inside of mine, am i suppose to download the fog.zip file & overwrite the init.gz file ? or do i take out the fog file & add that to my init.gz file?
As you can see i’m confused on this one[/quote]
Did you figure this out or do you still need assistance?
-
[quote=“smshahan, post: 13196, member: 2574”]Did you figure this out or do you still need assistance?[/quote]
I haven’t gotten it to work so i put init.gz file back how it was.
-
[quote=“smshahan, post: 13196, member: 2574”]Did you figure this out or do you still need assistance?[/quote]
Do you have this working?
-
[quote=“The Dealman, post: 13235, member: 53”]Do you have this working?[/quote]
Haven’t fully tested my changes out but I’ll get back to you possibly Wednesday if I get this working. I’ve been busy with another fog server.
-
[quote=“The Dealman, post: 13235, member: 53”]Do you have this working?[/quote]
Okay. Its working now.
This is what I did. Logged in via putty and did the following.
[LIST]
[]cd /tftpboot/fog/images
[]gunzip init.gz
[]mkdir initmountdir
[]mount -o loop init initmountdir
[/LIST]
Connected via WinSCP and navigated to /tftpboot/fog/images/initmountdir/binWhat I did was simply copy the new fog file ( that was shared) over to the location of my old one( /tftpboot/fog/images/initmountdir/bin) and overwrote that file. I also made a copy of my old fog file just in case it didn’t work.
After that I went back to putty and did the following.
[LIST]
[]cd /tftpboot/fog/images
[]umount initmountdir/
[]rmdir initmountdir
[]gzip init
[/LIST]
For some reason if I tried copying just the code from the new to the old it would either reboot continuously or give me a big blank nothing. There is a missing step I’m sure in that list or maybe a semicolon out of place.