Refracta Development, Scripts, etc.
Post a reply
meandean

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

## Re: Refracta Installer not working

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
dzz

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

## Re: Refracta Installer not working

Thu Oct 17, 2013 4:36 pm

The current installer test for grub version is:

Code:
  `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:
  `dpkg -l | egrep "ii|hi" |grep -v bin | grep -v doc | awk '$2 ~ "grub-[glp]" { print $2}'`

fsmithred

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

## Re: Refracta Installer not working

Thu Oct 17, 2013 11:52 pm

Good call. Consider it done.

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

dzz

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

## Re: Refracta Installer not working

Fri Oct 18, 2013 12:10 pm

Worth noting also the usual method ot making a package list (e.g. in refractasnapshot)

Code:
  `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:
  `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)
fsmithred

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

## Re: Refracta Installer not working

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:
  `dpkg -l | egrep "^ii|^hi" | grep -v bin | grep -v doc | awk '$2 ~ "grub-[glp]" { print $2}'`

:
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.