# 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!

## (Was Never an Issue - SOLVED) grub-update questions

Refracta Development, Scripts, etc.
Post a reply
6 posts • Page 1 of 1

### (Was Never an Issue - SOLVED) grub-update questions

by vsido » Fri Jan 08, 2016 1:28 am

Hey gang...
I need to pass a parameter to the grub.cfg environment on the target as the update-grub happens at the tail end of the installations
This information is on the snapshot in the default areas and on the livecd media (e t c - default - grub) but when the installation is done that kernel parameter is not built onto the target
Where does the installer get it's default information to build what eventually becomes (b o o t - grub - grub.cfg)?
Thanks
Last edited by vsido on Fri Jan 08, 2016 1:23 pm, edited 2 times in total.
I Dev VSIDO

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

Top

### Re: grub-update questions

by fsmithred » Fri Jan 08, 2016 4:36 am

During the installation, grub-install and update-grub get done in a chroot, so they should get their information from what is on the hard disk. And the etc/default/grub on the hard disk should be the same as in the live environment, I think. I'd have to look at the script to be sure. That would be the place to add to the default boot options. The other source of information is in etc/grub.d files.
I'll look at this again tomorrow morning.

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

Top

### Re: grub-update questions

by vsido » Fri Jan 08, 2016 4:47 am

That is my thinking how the process should work as well
I appreciate you looking into this, I have spent a while looking at the code tonight but have not found a specific variable that handles the etc-default-grub ...
I am wondering if it is part of the live-build tools/processes but that is a reach
Thank you
I Dev VSIDO

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

Top

### Re: grub-update questions

by fsmithred » Fri Jan 08, 2016 12:11 pm

grub.cfg and device.map are excluded from the rsync copy. They are regenerated when grub gets installed and updated. If you use the cli installer, there's a pause right before grub gets installed. You could check /target(/)etc/default/grub at that time to make sure it has the right options listed on the GRUB_CMDLINE_LINUX line.
Run the installer with the -d option (if it's not already running in debug mode) and post the grub section. There might be some clues.

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

Top

### Re: grub-update questions

by vsido » Fri Jan 08, 2016 12:58 pm

fsmithred... You may line me up for the firing squad
The installer works flawlessly as it should copying over exactly what is on the system during the build and creating the correct grub variables for the installer
I had been looking at an old installer and was so damned involved in finding a solution I did not take the correct look at what the problem was
My sincerest apologies
I Dev VSIDO

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

Top

### Re: (Was Never an Issue - SOLVED) grub-update questions

by fsmithred » Fri Jan 08, 2016 2:40 pm

np. I didn't spend a lot of time on it, and the review will do me some good. I don't remember everything that the program does.

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

Top

Display posts from previous:
Sort by

Post a reply
6 posts • Page 1 of 1

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