Skip to content

Commit

Permalink
Merge branch 'installkernel'
Browse files Browse the repository at this point in the history
  • Loading branch information
szorfein committed Oct 2, 2024
2 parents 0941859 + 25644eb commit c93e422
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Fix
- Voidlinux, remove 'base-container-full' instead of 'base-voidstrap'.
- Gentoo, use sys-kernel/installkernel, sys-kernel/installkernel-systemd was removed.

## 0.7.0, release 2023-12
* Add support for ssd disk `/dev/nvme*` #5
Expand Down
22 changes: 16 additions & 6 deletions lib/getch/gentoo/sources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def x
bask
gen_cmdline
grub_mkconfig
systemd_mkconfig
use_flags
make
end
Expand All @@ -43,12 +44,25 @@ def gen_cmdline
cmdline.main
end

# https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Kernel#GRUB
def grub_mkconfig
return if Helpers.systemd_minimal?

# https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
use = Getch::Gentoo::Use.new('sys-kernel/installkernel-gentoo')
use = Getch::Gentoo::Use.new('sys-kernel/installkernel')
use.add('grub')
use.add('dracut')
end

# https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Kernel#systemd-boot
def systemd_mkconfig
return unless Helpers.systemd_minimal?

use = Getch::Gentoo::Use.new('sys-apps/systemd')
use.add('boot')
other_use = Getch::Gentoo::Use.new('sys-kernel/installkernel')
other_use.add('systemd-boot')
other_use.add('dracut')
end

def use_flags
Expand All @@ -58,11 +72,7 @@ def use_flags

# https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Alternative:_Using_distribution_kernels
def make
if Helpers.systemd_minimal?
Install.new('sys-kernel/installkernel-systemd')
else
Install.new('sys-kernel/installkernel-gentoo')
end
Install.new('sys-kernel/installkernel')

# Install.new 'sys-kernel/gentoo-kernel'
Install.new 'sys-kernel/gentoo-kernel-bin'
Expand Down
2 changes: 1 addition & 1 deletion lib/getch/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Getch
VERSION = '0.7.1'
VERSION = '0.7.2'
end

0 comments on commit c93e422

Please sign in to comment.