# refracta.freeforums.org

place to talk about refracta

Skip to content

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.
Post a reply
35 posts • Page 4 of 4 • 1, 2, 3, 4

### Re: Refracta Installer not working

by 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
sorry to interrupt and run off-topic....just ignore me

meandean
  Posts: 392
  Joined: Wed Mar 09, 2011 5:16 am

Top

### Re: Refracta Installer not working

by 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: 647
  Joined: Wed Apr 27, 2011 11:53 am
  Location: Devon, England

Top

### Re: Refracta Installer not working

by 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}')`

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

Top

### Re: Refracta Installer not working

by 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: 647
  Joined: Wed Apr 27, 2011 11:53 am
  Location: Devon, England

Top

### Re: Refracta Installer not working

by 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}'`

:

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

Top

Previous Display posts from previous:
Sort by

Post a reply
35 posts • Page 4 of 4 • 1, 2, 3, 4

Return to Discuss

Jump to:

### Who is online

Users browsing this forum: No registered users and 0 guests

Donate Now
ProNight Style by ModphpBB3
Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
A Member of the Crowdgather Forum Community
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
Report Violation
suspicion-preferred