Refracta Development, Scripts, etc.
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.
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.
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
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.
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
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.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.