Skip to content

Releases: rewtnull/gentoo-sources-compilation-helper

gentoo-sources compilation helper

17 Jan 20:38
33d5bf4
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

If a new gentoo-sources update has been synced, or you want to recompile your kernel for what ever reason, all you need to do is to run this script without arguments, or explicitly choose kernel version to install by using the --kernel option. No need to run eselect or symlinking kernel manually.

What this script does:

Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers these for you because your time is too valuable to answer questions)
Checks if your /boot directory is empty, and if it is, asks to mount it
Automatically re-links your current (or explicit) kernel version to /usr/src/linux
Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
Compiles kernel and (optionally) modules, depending on your makearg settings
Optionally generates initramfs to /boot with the --initramfs option
Adds kernel to grub by running grub-mkconfig
Automatically unmounts /boot, if mounted, after installation
Makes a copy of /usr/src/linux/.config to /boot/config-
Adds -x64 to naming because i don't know

v0.19 (20171122) [*] Now using tput instead of hardcoded terminal sequences for output
[!] Fixed silly little bug in bash version check
v0.20 (20190128) [!] Came Bash v5 and guess what. Yes, bash version check was apparently still broken :[

Sorry for late update

gentoo-sources compilation helper

21 Nov 23:57
194e387
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

If a new gentoo-sources update has been synced, or you want to recompile your kernel for what ever reason, all you need to do is to run this script without arguments, or explicitly choose kernel version to install by using the --kernel option. No need to run eselect or symlinking kernel manually.

What this script does:

  • Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers these for you because your time is too valuable to answer questions)
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, depending on your makearg settings
  • Optionally generates initramfs to /boot with the --initramfs option
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Adds -x64 to naming because i don't know

v0.18 (20171121)

  • Fixed some bugs with sanity checks
  • Code cleanup
  • Squashed some shellsheck warnings
  • Now unmounts /boot upon exit if choosing to
    not compile kernel

gentoo-sources compilation helper

06 Nov 23:51
bd9c3b7
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

What this script does:

  • Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers these for you because your time is too valuable to answer questions)
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, depending on your makearg settings
  • Optionally generates initramfs to /boot with the --initramfs option
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Copies or moves the kernel files to your boot directory
  • Adds -x64 to naming because i don't know

v0.17 (20171107)

  • Lexicographical comparison bug should now work properly. Sorry for that
  • Fixed small bug that added the /usr/src/linux symlink to array when it should not be there
  • Added new addzero() function

gentoo-sources compilation helper

17 Sep 23:21
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

What this script does:

  • Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers these for you because your time is too valuable to answer questions)
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, depending on your makearg settings
  • Optionally generates initramfs to /boot with the --initramfs option
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Copies or moves the kernel files to your boot directory
  • Adds -x64 to naming because i don't know

v0.16 (20170917)

  • Found out that even variables declared in loop expressions are global in bash /o\
  • Fixed bug in lexicographical comparison to return the largest element in cases like f.i. 4.1.9 vs. 4.1.10
  • Moved dracut check to where it makes more sense
  • Removed reduntant part of regex

gentoo-sources compilation helper

26 Jul 12:49
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

What this script does:

  • Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers these for you because your time is too valuable to answer questions)
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, depending on your makearg settings
  • Optionally generates initramfs to /boot with the --initramfs option
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Copies or moves the kernel files to your boot directory
  • Adds -x64 to naming because i don't know

v0.14 (20170726)

  • Moved dracut check outside of getopt
  • yestoall variable unset too early
  • Refractored yestoall code by lifting it out to a general yestoall function
  • Refractored parts of sanity check to missing function
  • Renamed arch to architecture to avoid possible naming conflict with coreutils arch command

gentoo-sources compilation helper

25 Jul 03:35
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

  • Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers these for you because your time is too valuable to answer questions)
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, depending on your makearg settings
  • Optionally generates initramfs to /boot with the --initramfs option
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Copies or moves the kernel files to your boot directory
  • Adds -x64 to naming because i don't know

v0.13 (20170725)

  • Added --initramfs option to generate initramfs using dracut
  • Removed old initramfs related code
  • Missed unset variable
  • Code cleanup

gentoo-sources compilation helper

21 Jul 04:47
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

  • Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers these for you because your time is too valuable to answer questions)
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, and inintramfs depending on your makearg settings
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Copies or moves the kernel files to your boot directory
  • Adds -x64 to naming because i don't know

v0.12 (20170721)

  • Added kerninstall setting to allow for either moving or copying kernel to boot directory
  • Made kernel install process verbose
  • Tightened argument checks
  • Minor code cleanup
  • Removed superflous check for non-existing symbolic link

gentoo-sources compilation helper

20 Jul 21:58
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

What this script does:

  • Leads you through kernel configuration and compilation by boolean (y/n) questions (or optionally answers those for you because your time is too valuable to answer questions)
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, and inintramfs depending on your makearg settings
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Adds -x64 to naming because i don't know

v0.11 (20170720)

  • Forgot to remove some debug code
  • Sometimes you break stuff even more when trying to fix them. This was one of those cases. Kernel version sanity handler should now be fixed for realsies

gentoo-sources compilation helper

20 Jul 20:05
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

What this script does:

  • Leads you through kernel configuration and compilation by boolean (y/n) questions
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, and inintramfs depending on your makearg settings
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Adds -x64 to naming because i don't know

v0.10 (20170720)

  • Added optional --yestoall option to automatically answer yes to all questions
  • Fixed bug in kernel version sanity handler
  • Changed output format of error handler

gentoo-sources compilation helper

17 Jul 00:09
Compare
Choose a tag to compare

If you're tired of manually (re)compiling your gentoo-sources for the N:th time, or you're just lazy, this is the script for you.

  • Leads you through kernel configuration and compilation by boolean (y/n)
    questions
  • Checks if your /boot directory is empty, and if it is, asks to mount it
  • Automatically re-links your current (or explicit) kernel version to
    /usr/src/linux
  • Checks if a .config file exists, if not, you will either get an option
    to deflate it from /proc/config.gz, or manually setup new kernel .config
  • Compiles kernel and (optionally) modules, and inintramfs depending on
    your makearg settings
  • Adds kernel to grub by running grub-mkconfig
  • Automatically unmounts /boot, if mounted, after installation
  • Makes a copy of /usr/src/linux/.config to /boot/config-
  • Adds -x64 to naming because i don't know

v0.9 (20170717)

  • Added arch setting to define architecture type in name
  • Wrong var used in an error expression
  • Minor code cleanup