Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Refracta Installer not working

Refracta Development, Scripts, etc.

Re: Refracta Installer not working

Postby meandean » Tue Jun 11, 2013 9:34 am

dzz wrote:Well we did discuss that one before.

oh yea...sorry forgot... ;)

Only for *most* users is it pointless.

nah ALL users....just some havent realized it yet :P



sorry to interrupt and run off-topic....just ignore me :shock:
User avatar
meandean
 
Posts: 392
Joined: Wed Mar 09, 2011 5:16 am

Re: Refracta Installer not working

Postby dzz » Thu Oct 17, 2013 4:36 pm

The current installer test for grub version is:

Code: Select all
grubversion=$(dpkg -l | grep ii | grep -v doc | awk '$2 ~ "grub-[glp]" { print $2}')

Apart from "grub-pc-bin" being additionally detected as discussed before, if grub-pc is on hold the current grub version test will not return "grub-pc" because the dpkg will mark it "hi" not "ii"

This modification might in that case avoid a problem:

Code: Select all
dpkg -l | egrep "ii|hi" |grep -v bin | grep -v doc | awk '$2 ~ "grub-[glp]" { print $2}'
dzz
 
Posts: 629
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Refracta Installer not working

Postby fsmithred » Thu Oct 17, 2013 11:52 pm

Good call. Consider it done.
Code: Select all
grubversion=$(dpkg -l | egrep "ii|hi" | grep -v bin | grep -v doc | awk '$2 ~ "grub-[glp]" { print $2}')
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta Installer not working

Postby dzz » Fri Oct 18, 2013 12:10 pm

Worth noting also the usual method ot making a package list (e.g. in refractasnapshot)
Code: Select all
dpkg -l | grep "ii" | awk '{ print $2 }' > path/to/package_list

will not include held packages

EDIT: To include any held packages in a package list I found this works:

Code: Select all
dpkg -l| awk '{print $1 " " $2 }' | egrep "ii |hi " | awk '{ print $2 }'

Note, using awk to first get relevant columns only (1 and 2) then a space after "hi" (otherwise e.g. "libgraphicsmagick3" gets picked up)
dzz
 
Posts: 629
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Refracta Installer not working

Postby fsmithred » Sun Oct 20, 2013 11:19 am

Oh, I didn't see your edit until after I uploaded a new iso and new debs for refractasnapshot. For the full packages list, I guess it doesn't matter, but for $grubversion, it would. Will fix the installer debs before I upload new ones. This should also work, I think
Code: Select all
dpkg -l | egrep "^ii|^hi" | grep -v bin | grep -v doc | awk '$2 ~ "grub-[glp]" { print $2}'
:
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Previous

Return to Discuss

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred