Ask your questions here.
Post a reply
vsido

- vsido
- Posts: 90
- Joined: Fri Jan 30, 2015 3:38 pm

## (SOLVED) This setting in Snapshot

Wed Jan 25, 2017 2:29 am

Where exactly is this setting done in Refracta Snapshot?
I build for both x32 and x64 and the x64 setting is always x32 and I have to edit it.. so it is something I am sure I have overlooked
Thanks
Last edited by vsido on Wed Jan 25, 2017 10:08 pm, edited 2 times in total.
golinux

- golinux
- Posts: 663
- Joined: Thu Nov 08, 2012 1:23 am

## Re: This setting in Snapshot

Wed Jan 25, 2017 4:53 am

Can you please link that to open to a bigger image?
vsido

- vsido
- Posts: 90
- Joined: Fri Jan 30, 2015 3:38 pm

## Re: This setting in Snapshot

Wed Jan 25, 2017 4:48 pm

fsmithred

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

## Re: This setting in Snapshot

Wed Jan 25, 2017 6:22 pm

There's this function around line 523 (see below). First it looks at lsb_release, then it looks at etc/issue (but only for Refracta) and last it lets you enter a name. So, where is it getting the x32? That must be something you added some place.
There's no override in the config file. If you want the same name for both arches, comment out 'set_distro_name' on (around) lines 394 and 446, and add DISTRO="some-name" to the config file.
Or, you could create and fill out etc/lsb-release. That way, grub will use the name, too. Mine looks like this:

Code:
  `DISTRIB_ID=Refracta
  DISTRIB_DESCRIPTION="Refracted Devuan GNU/Linux 1.0"
  DISTRIB_RELEASE=8.0
  DISTRIB_CODENAME=jessie
  `

Code:
  `set_distro_name () {
  if [[ $iso_dir = "/usr/lib/refractasnapshot/iso" ]] && [[ $boot_menu = "live.cfg" ]] ; then
  DISTRO=$(lsb_release -i -s 2>/dev/null)
  if $(grep -q Refracta /etc/issue) ; then
  DISTRO="Refracta"
  fi
  DISTRO=$($DIALOG --entry --title=$"Linux Distribution" ${CENTER} --text=$"This is the distribution name that will appear in the boot menu
  for the live image. If it's blank, the menu entries will just say
  \"GNU/Linux (kernel-version)\" " \
  --entry-text="$DISTRO" --width=500 --${BUTTON0}="OK"${BUTTON0NUM})
  if [[ -z "$DISTRO" ]] ; then
  DISTRO="GNU/Linux `uname -r`"
  fi
  fi
  }`

vsido

- vsido
- Posts: 90
- Joined: Fri Jan 30, 2015 3:38 pm

## Re: This setting in Snapshot

Wed Jan 25, 2017 10:08 pm

Thanks fsmithred...
In my haste I did copy over the x32 lsb_release to the x64 build
... just could not remember it
I appreciate the help
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.