View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9645 Location: almost Mile High in the USA
|
Posted: Fri Feb 02, 2018 10:43 pm Post subject: |
|
|
Just make sure the machines are compatible with each others' kernel (including boot loader information since you're tarring that too if it's there)...
Note that this should work on EFI machines but on MBR machines, copying over grub /boot files is not a good idea - I think some of those files are hardcoded.
Doesn't work on my machines as they're all different... I really should try to unify them somewhat, but not much can be done as they're mostly thrown together with miscellaneous parts... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Sat Feb 03, 2018 12:14 am Post subject: |
|
|
eccerr0r,
Thanks, I appreciate it. It's an idea I'm toying with for Gentoo Studio. Now I understand the boot stuff definitely can't be done, since I have no way of knowing whether the user has MBR or EFI. For the rest, now that I've thought about it more, this will probably cause breakage for users at some point.
Maybe instead of just downloading packaged modules and bootloader info, I should be writing an update script that downloads kernel modules and runs grub-mkconfig.
Thanks, this helped me think about it some more. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Feb 03, 2018 1:35 am Post subject: |
|
|
You might provide a script after sync that check for update, download and execute your stuff.
Code: | #/bin/sh
FNAME="my_update"
URL="https://forums.gentoo.org/viewtopic-t-1076420-highlight-.html"
MD5_OLD=$(md5sum "${FNAME}");
wget -q -c -O "${FNAME}" "${URL}"
MD5_NEW=$(md5sum "${FNAME}")
if [ "${MD5_OLD}" = "${MD5_NEW}" ]; then
echo no update...
else
echo a new update has been download
# mount /boot
# ...
fi |
You put that in /etc/portage/repo.postsync.d and you have your update system. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9645 Location: almost Mile High in the USA
|
Posted: Sat Feb 03, 2018 1:56 am Post subject: |
|
|
A possibility is you have grub-mkconfig pick up a generic name and supply a kernel, that same generically named symlink to the kernel, and the modules in the tarball. Won't clean up the old kernels but it should be minimal damage to the system. The kernel still needs to be tailored to work between all machines... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3104
|
Posted: Sat Feb 03, 2018 5:08 pm Post subject: |
|
|
Kernel supports INSTALL_PATH and INSTALL_MOD_PATH variables. You can use those to install kernel to a clean directory and make a tarball of that.
Also, it is possible to create an ebuild for binary kernel. This topic keeps coming back again and again. I have attempted this some time ago, got it to the point where it kinda worked, and then abandoned it for sake of something else that became more important at that time.
Still, I may (or may not) be able to help a bit with that. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 722 Location: /home
|
Posted: Sun Feb 04, 2018 4:15 am Post subject: |
|
|
Funtoo has a working implementation for building binary kernels (at least for their debian-sources), you might want to look at their ebuilds and eclasses. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
|