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!

(SOLVED) This setting in Snapshot

Ask your questions here.

(SOLVED) This setting in Snapshot

Postby vsido » Wed Jan 25, 2017 2:29 am

Where exactly is this setting done in Refracta Snapshot?

Image

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.
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm

Re: This setting in Snapshot

Postby golinux » Wed Jan 25, 2017 4:53 am

Can you please link that to open to a bigger image?
May the FORK be with you!
User avatar
golinux
 
Posts: 663
Joined: Thu Nov 08, 2012 1:23 am

Re: This setting in Snapshot

Postby vsido » Wed Jan 25, 2017 4:48 pm

Image
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm

Re: This setting in Snapshot

Postby fsmithred » 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: Select all
DISTRIB_ID=Refracta
DISTRIB_DESCRIPTION="Refracted Devuan GNU/Linux 1.0"
DISTRIB_RELEASE=8.0
DISTRIB_CODENAME=jessie



Code: Select all
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
}   
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: This setting in Snapshot

Postby vsido » 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
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred