Ask your questions here.
Post a reply

[solved] installer quits after select partition

Mon Oct 07, 2013 9:43 am

Hi,

Refractasnapshot looks a really great piece of software and I'm eager to make use of it. It's just that so far I haven't been able to use it for installing the Live system to HDD.

I can make a snapshot all OK, and I use the USB stick gui too.

So I boot in the first option, and start the installer. I choose expert, and select a few options, like leave Grub till later.

Then I select the partition to install on, and the swap partition. as soon as I select swap and OK, the installer quits and thats the last I see of it. :|

anyone else seen this happen? what could be happening?
thanks for helping

(Debian Wheezy 64bit)
Last edited by orbspider on Wed Oct 09, 2013 11:43 am, edited 1 time in total.

Re: installer quits after select partition

Tue Oct 08, 2013 2:31 am

Let me see the output of this command:
Code:
/sbin/blkid |grep swap | awk '{print "\n" $0 }'
and also the contents of /var/log/refractainstaller_error.log

Re: installer quits after select partition

Tue Oct 08, 2013 5:26 am

ok here it is
/dev/sda7: UUID="2e2a8734-2665-4787-9829-75ee6ee35fc0" TYPE="swap"

and the error log contains only this line
Unable parse command line: Unknown option --info

Re: installer quits after select partition

Tue Oct 08, 2013 9:25 am

What version of yad are you using? 12-something? If so, replace it with a newer one.
http://debs.slavino.sk/files-testing.php

Someone else got the same error - here's the discussion.
post2658.html

Re: installer quits after select partition

Tue Oct 08, 2013 10:30 am

Both in my (extemely customised) installation and in a live session of refracta_7.0-20130513_0240.iso

Code:
:~$ zenity --info --text="Done!\n\n You may now reboot into the new system.\n\nRemember to remove your installation media.\n"
bash: !\n\n: event not found

Although I absolutely never actually use zenity now. Running the corresponding line from the yad installer gives the same result. Both as root and user.

EDIT see also line 97
Code:
zenity --error --text="You need to be root!"

and I've seen before in similar bash lines problems using ! .. \! generally works but I try to avoid even that now.

What I don't understand is why refractainstaller* has been tested and used both here and elsewhere extensively despite that (and I'm not convinced that refracta-installer-not-working-t285.html was fully resolved)

Re: installer quits after select partition

Wed Oct 09, 2013 1:55 am

I get these results in a terminal in sid and wheezy.
Code:
[email protected]:~$ echo "This is a test!"
bash: !": event not found
[email protected]:~$ echo "This is a test\!"
This is a test\!
[email protected]:~$ echo This is a test\!
This is a test!
[email protected]:~$ echo This is a test!
This is a test!



But if I put the commands in a script and run it, I get different results. The exclamation point is safe inside the quotes and doesn't need to be escaped. That's the way it is in the scripts.
Here's the output
Code:
This is a test!
---
This is a test\!
---
This is a test!
---
This is a test!
---


Here's the script.
Code:
#!/usr/bin/env bash

echo "This is a test!"
echo ---
echo "This is a test\!"
echo ---
echo This is a test\!
echo ---
echo This is a test!
echo ---
exit 0

Re: installer quits after select partition

Wed Oct 09, 2013 11:42 am

Ok, success! installed latest yad and tried again. This time after selecting swap part. the installer proceeded..

I like the way it asks for editing the sudoers file -to make way for the new user to use sudo?
(I found the wording in dialogue a bit unexplanatory though, "remove the last line in sudoers", does it mean "remove line `user ALL=(ALL:ALL) ALL`" ?

couldn't it be phrased like this
Code:
Would you like to "remove line `user     ALL=(ALL:ALL) ALL`" or change the user name in this line to the new user's?


reason is, my sudoer's "last line" is not that line.

Besides that, I found the installer to work flawlessly and fast. I look forward to putting it into good use in the future, and now I won't be dependant on Live Helper to get my Debian ISO ready.

Thanks for a great backup tool!

Re: [solved] installer quits after select partition

Wed Oct 09, 2013 1:08 pm

One slight problem with yad...
it broke my apt

I installed the latest, 23.1-1, so I will try an earlier version from http://code.google.com/p/yad/downloads/list

yad 20.1 doesn't break apt, but I have yet to test with r-installer!
Last edited by orbspider on Wed Oct 09, 2013 2:07 pm, edited 1 time in total.

Re: [solved] installer quits after select partition

Wed Oct 09, 2013 1:17 pm

The text window for editing sudoers is one of the many cases where something in the script is written for refracta and may not correspond to what exists in other distros. And you're right that it may not be the last line. In refracta, the last line is
Code:
user ALL=(ALL) NOPASSWD: ALL
but that may change. Still, I need to change the wording. I think I could say something like
Code:
...comment out the line that contains $oldname or replace $oldname with $newname.
since those variables are already set, and someone might be using the script on a system that has a different primary user.

One thing I don't understand - the control file for the package requires specific versions (or newer) of zenity or yad.
Code:
zenity (>=2.30.0) | yad ( >=0.17.1.1)
Do you have both installed? Now that I'm looking at that, I suppose that if you had a new enough version of zenity and an older version of yad, you might have a problem, because the package will install, but then it preferentially uses yad. Maybe I need to check the version inside the script.

Re: [solved] installer quits after select partition

Wed Oct 09, 2013 2:13 pm

sorry i just edited above post before refreshing to c yours..
I installed yad 20.1 so will test it asap

I have zenity 3.4.0-2
Post a reply