Refracta Development, Scripts, etc.
Post a reply
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: ready to do some tests

Mon Jul 18, 2011 5:23 pm

Thanks for testing, guys. The missing iso/live folder is a known problem with 6.0.5. Somehow, it didn't get created when I made the iso for that one. Discussed it here: refractasnapshot-problem-in-6-0-5-t47.html and the fix is:

Code:
  `mkdir /usr/local/lib/refractasnapshot/iso/live`

Guess I should put in a temporary warning about that, or something.
Location of $configfile changed to /etc/refractasnapshot.conf
Typo one snapshot_excludes fixed
will upload soon.
With the exception of the configfile location, any variables you change should be done in the configfile itself.
Changed initrd to initrd.img on line 34 (not sure if my line numbers are the same as yours.)
Edit: Added a couple of lines so you don't have to use mkdir as above. That fix should not be necessary when 6.0.6 comes out, and I'll remove it.
dzz

- dzz
- Posts: 647
- Joined: Wed Apr 27, 2011 11:53 am
- Location: Devon, England

## Re: ready to do some tests

Mon Jul 18, 2011 10:36 pm

As I said, limited time for this right now... but I really do want to see snapshot working right.
That's what I did to get it going, put in <mkdir /usr/local/lib/refractasnapshot/iso/live> near lines 83 and 87
I'm now finding the iso won't boot, still investigating if it's my system at fault or possibly the the initrd line in the config file. But I do know the basic snapshot principle is good, it has worked before.
I know this job can be done by other means but snapshot is definitely worth persevering with, in bash format it's very adaptable. The current errors seem really quite minor; it's almost there.
Nobody tried my adaption yet?
It would probably be easier for testing, development and general use if snapshot (bash) were packaged as a deb sooner than later. I got a bit confused what are the current lib files to use and where to get them. I quite like the idea of keeping a cli version as well as a gui, effective simplicity is good.
More later...
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: ready to do some tests

Tue Jul 19, 2011 1:29 am

> dzz wrote:Nobody tried my adaption yet?

If by "my adaption" you mean those proposals from above:

> The directory $work_dir/iso/live was not made (should it be done around lines 83 and 87?) so the squash didn't get made
> There is a typo at line 27 "snapshot_exlcudes" (should be "snapshot_excludes")
> Line 21 should probably be:
> configfile="/etc/refractasnapshot.conf"
> Having adjusted those, the whole process completed but no time to test the ISO today.

yes i tried that. I think you are speaking of the gui-version (line 83-87 makes me think that)?
Anyway: i still had the mini-iso. I started to change this and that, and at a certain point i did not know what i changed when and why anymore. After my last changes, the ones i posted, it did work.
If you didn't mean those adaptions: i am ready for testing all i can get. Just tell me what. I agree pretty much that it should be a piece of cake to run it (without editing, searching, etc), and if so its great. Thats why i would do the tests, but am not able to code it myself (as i don't know enough about the whole process).
dzz

- dzz
- Posts: 647
- Joined: Wed Apr 27, 2011 11:53 am
- Location: Devon, England

## Re: ready to do some tests

Tue Jul 19, 2011 9:32 am

The "adaption" I meant is the pastebin I posted here (about 7 posts back in this thread); it was a complete script, using the existing lib files.
Test it if you want (it worked here) but I don't want to detract from moving the "official" version forward. Mine was done intending to help that along, with some personalised bits added for versatility, so it's a sideline at the moment.
We should now prioritise fsmithred's new stuff, that's what my last couple of posts are referring to.
@nadir, if you did a fully working modification, don't forget http://paste.debian.net/
My next job is to do a clean Refracta install, in case my tests are affected by anything here... vbox is too slow and can sometimes give misleading results
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: ready to do some tests

Tue Jul 19, 2011 11:58 am

dzz, I tested your script up though the options selection, but I didn't let it run beyond that. I wasn't sure how much you'd customized the code for your own purposes, and I didn't have the time to figure it out. Maybe I'll try it all the way in vbox. I'll almost certainly lift some of the code when I make the gui version of refractasnapshot. But I'm going to have to test mine a few more times. The excludes file was giving me trouble. I think I ran the script about 10 times before I got it the way I wanted. Will have to do that again, since nadir had to change the excludes. His way is how I thought it should be, but that didn't work for me.
The error on ~/.gvfs was also giving me trouble. I can't recall the detail right now, but I did finally decide on keeping it in the excludes file. I want to say that there shouldn't be an error message for that, but I really can't be sure until I try again.
One other note on the excludes - I used /home/*/whatever, because I did this on an install that has more than one user. (That would also be needed if you change the user name during or after installation.)
I've been busy doing other things, but I'll get back to this soon.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: ready to do some tests

Tue Jul 19, 2011 12:26 pm

dzz, i made a fault with my super-cow-powers (aka moderator):
instead of quoting i picked "editing". In case you have read it: big sorry. I owe you, so to speak...
I think i was able to restore it again. I did the best i could
Now my post is gone. I will keep it short: i wanted to test your version, it was on my neverending list, but finally i forgot to.
Right now i let it run, so i can say more later.
As for pastebin: yup, if i know that it works for sure, i will pastebin (got to boot the resulting iso later). In general i let fsmithred upload it to github and stick to that version (that is: i tell him or ask him, and at a certain point his version is the one).
ok, the "edit" instead of "quote" gave me hard-times, need a rest now ....
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: ready to do some tests

Tue Jul 19, 2011 12:40 pm

the problem with .gvfs will vanish in future versions of Debian. At least thats how it is here.
One can also umount it when using rsync (with/without refractasnapshot). Perhaps its necessary to delete it too, not sure.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: ready to do some tests

Tue Jul 19, 2011 5:28 pm

both resulting isos, the script by dzz and my edited refractasnapshot, give me a kernel-panic.
No clue, i need a break. Its above my level.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: ready to do some tests

Wed Jul 20, 2011 4:05 am

It's not using the config file. Try the latest upload - 0.04.1. I made an iso with it, using the excludes file the way nadir had it (no leading slashes), and it seemed to work, but I haven't tried booting the iso yet. The latest one does use the config file. Had to make a function - refractasnapshot_configuration.
dzz

- dzz
- Posts: 647
- Joined: Wed Apr 27, 2011 11:53 am
- Location: Devon, England

## Re: ready to do some tests

Wed Jul 20, 2011 11:41 am

Typing this post from this morning's snapshot ISO, booted in virtualbox! It was made using the new stuff with nothing modified except the config.
My first job was a clean (HD) install of Refracta 6.0.5. Issues in my own system had to be ruled out. The old one was probably 6.0.4 Unnatural acts had been performed in the live-boot and live-config department, I had lost track of what they were.
The installation was flawless, using the newest installer. New username and passwords were set correctly. No working optical drive right now so it was done from usb (more on that later, no I don't use unetbootin!)
The exclude list and config must have worked, I set it to save temp files and checked that some items in the exclude list were not there. I set the iso to have a date stamp, it did.
EDIT: If you want temp files saved: /tmp gets cleaned on reboot so temp files directory needs resetting also,
I did actually manage to get a bootable ISO from the previous script having modified it but no point persevering with that as the newest one works as-is.
Next tests: Other config and exclude options, then Snapshot on some of my other Debian systems!
So thanks fsmithred, really good work.
@nadir, thanks also for testing. Might be worth checking your system if the new stuff still doesn't work and that you are running 6.0.5, let us know please when you have time and have recovered!
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.