Page 1 of 1

[Solved]usm update

Posted: 09 Oct 2014, 21:44
by Bogomips
rc.local

Code: Select all

usm -u usm noprompts
usm -u all
Would there still be prompt for update & install, and if not, there should be no reason for this not to work?

Re: usm update

Posted: 10 Oct 2014, 11:58
by brokenman
noprompts has not been added to the update function. I will try to get this in before the rc1 release. If not then I will add it for the rc2. Thanks.

Re: usm update

Posted: 10 Oct 2014, 12:03
by Bogomips
Seems not to have worked. Did not get prompts in any case. Looked through psinfo and various others in /var/log, but did not find log of rc.local invocations.

Re: usm update

Posted: 10 Oct 2014, 20:29
by brokenman
Please put in rc.local: usm -u all > /tmp/dump.log 2>&1

Then check on next boot to see what the problem is. The malfunction may be that the internet connection is not active by the time rc.local is run.
Anyway I have added noprompts to usm update in github.

Re: usm update

Posted: 11 Oct 2014, 12:19
by Bogomips
Decided couldn't wait more than two minutes to boot up, so in rc.local had only

Code: Select all

# /etc/rc.d/rc.local:  Local system initialization script.
...
# 10.10.14
usm -u usm > /tmp/dump.log 2>&1
sleep 10
brokenman wrote: The malfunction may be that the internet connection is not active by the time rc.local is run.
Log seems to say different:

Code: Select all

guest@porteus:~$ cat /tmp/dump.log   
Downloading: vercheck.txt  DONE

/usr/share/usm/funcupdateDatabase: line 338: [: -gt: unary operator expected
No database updates were found.

/usr/share/usm/funcupdateDatabase: line 351: [: -gt: unary operator expected
You have the current USM version.
After boot:

Code: Select all

root@porteus:/home/guest# usm -v

 You are missing required database files! 
 Please run: usm -u all

root@porteus:/home/guest# usm -u all
alien was already updated today. Skipping.
salix was already updated today. Skipping.
slacky was already updated today. Skipping.
ponce was already updated today. Skipping.
slackware was already updated today. Skipping.
slackwarepatches was already updated today. Skipping.

Downloading: extra-deps.txt  DONE

root@porteus:/home/guest# usm -v

 You are missing required database files! 
 Please run: usm -u all

root@porteus:/home/guest# usm -u usm
Downloading: vercheck.txt  DONE

 An update is available for the usm database files.
 Please run:  usm -u all 

 A new version of USM is available.
 Would you like to download it now? [y/n]
Downloading: usm-latest-0.0-noarch-1.txz  DONE
...
 USM was updated successfully
 You are currently using:
 USM-v 

root@porteus:/home/guest# usm -v
 You are using USM version:  3.1.6

Re: usm update

Posted: 11 Oct 2014, 18:42
by brokenman
You should update to 3.1.6 before attempting this. It will not support 'noprompts' for updating usm (coming in next version) but should for updating database files.

Re: usm update

Posted: 11 Oct 2014, 20:34
by Bogomips
Not possible. Running always fresh. So updating usm to 3.1.6 thru rc.local was the object of the exercise. :Search:

Re: usm update

Posted: 11 Oct 2014, 21:43
by brokenman
Not possible.
Fresh mode does not prevent you from putting a module in a boot time folder. In any case, as I stated earlier, updating usm through rc.local is not possible until the next version.

Re: usm update

Posted: 12 Oct 2014, 13:12
by Bogomips
brokenman wrote:Fresh mode does not prevent you from putting a module in a boot time folder. In any case, as I stated earlier, updating usm through rc.local is not possible until the next version.
Thanks for tip.

Workaround in rc.local

Code: Select all

# /etc/rc.d/rc.local:  Local system initialization script.
...
installpkg /mnt/sda1/tmp/usm/usm-latest-0.0-noarch-1.txz