getch 0.7.0 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +7 -0
- data/README.md +2 -1
- data/getch.gemspec +6 -4
- data/lib/getch/gentoo/sources.rb +16 -7
- data/lib/getch/version.rb +1 -1
- data/lib/getch/void/update.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8949c8a35b78615d49e8a79daadbd70052adc9e84291bdc2832ecf58bbb185d
|
4
|
+
data.tar.gz: e44e2466636fa47f72be581818f4648e19a7291ccdf435358b97241b1b12c77b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4fd298a8d04ddabaf2e1bc53f27af50131479190a7df542840f2557ea227677b42bf7b2bfee25185d305e54b71a934c5723f36e4b0631b50eecba186b1b5e90
|
7
|
+
data.tar.gz: 31b0a7f44918791c981b8f4af725d3be13565098dec21fd4948619e3edfa4c66f61fd93e4d646921d5df7be315e77c5ac0d4aeb3fb5ea1b26a9deab900520f32
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.7.3, release 2024-10
|
2
|
+
Add a Workflow to build gem on Github
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
- Voidlinux, remove 'base-container-full' instead of 'base-voidstrap'.
|
6
|
+
- Gentoo, use and configure 'sys-kernel/installkernel', sys-kernel/installkernel-systemd was removed from portage.
|
7
|
+
|
1
8
|
## 0.7.0, release 2023-12
|
2
9
|
* Add support for ssd disk `/dev/nvme*` #5
|
3
10
|
* System with systemd may need `systemd-machine-id-setup && systemctl restart systemd-networkd` after the first boot to make the dhcp works.
|
data/README.md
CHANGED
@@ -49,7 +49,8 @@ You can also use your current `linux` host, just pay attention to the disk that
|
|
49
49
|
## Dependencies
|
50
50
|
Getch is build without external libs, so it only require `ruby >= 2.5`.
|
51
51
|
|
52
|
-
On a live image of Void, you need to install `xbps-install -S ruby xz gptfdisk
|
52
|
+
On a live image of Void, you need to install `xbps-install -S ruby xz gptfdisk
|
53
|
+
openssl`.
|
53
54
|
|
54
55
|
## Install
|
55
56
|
Getch is cryptographically signed, so add my public key (if you haven’t already) as a trusted certificate.
|
data/getch.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/getch/version'
|
2
4
|
|
3
5
|
Gem::Specification.new do |s|
|
4
6
|
s.name = 'getch'
|
@@ -15,7 +17,7 @@ Gem::Specification.new do |s|
|
|
15
17
|
'wiki_uri' => 'https://github.com/szorfein/getch'
|
16
18
|
}
|
17
19
|
s.license = 'MIT'
|
18
|
-
s.required_ruby_version = '>= 2.
|
20
|
+
s.required_ruby_version = '>= 2.6'
|
19
21
|
|
20
22
|
s.files = Dir.glob('{assets,lib}/**/*', File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
|
21
23
|
|
@@ -26,6 +28,6 @@ Gem::Specification.new do |s|
|
|
26
28
|
s.executables << 'getch'
|
27
29
|
s.require_paths = ['lib']
|
28
30
|
|
29
|
-
s.cert_chain = ['certs/szorfein.pem']
|
30
|
-
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
|
31
|
+
#s.cert_chain = ['certs/szorfein.pem']
|
32
|
+
#s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
|
31
33
|
end
|
data/lib/getch/gentoo/sources.rb
CHANGED
@@ -22,6 +22,7 @@ module Getch
|
|
22
22
|
bask
|
23
23
|
gen_cmdline
|
24
24
|
grub_mkconfig
|
25
|
+
systemd_mkconfig
|
25
26
|
use_flags
|
26
27
|
make
|
27
28
|
end
|
@@ -43,12 +44,24 @@ module Getch
|
|
43
44
|
cmdline.main
|
44
45
|
end
|
45
46
|
|
47
|
+
# https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Kernel#GRUB
|
46
48
|
def grub_mkconfig
|
47
49
|
return if Helpers.systemd_minimal?
|
48
50
|
|
49
51
|
# https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
50
|
-
use = Getch::Gentoo::Use.new('sys-kernel/installkernel
|
51
|
-
|
52
|
+
use = Getch::Gentoo::Use.new('sys-kernel/installkernel')
|
53
|
+
|
54
|
+
use.add(%w[grub dracut])
|
55
|
+
end
|
56
|
+
|
57
|
+
# https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Kernel#systemd-boot
|
58
|
+
def systemd_mkconfig
|
59
|
+
return unless Helpers.systemd_minimal?
|
60
|
+
|
61
|
+
use = Getch::Gentoo::Use.new('sys-apps/systemd')
|
62
|
+
use.add('boot')
|
63
|
+
other_use = Getch::Gentoo::Use.new('sys-kernel/installkernel')
|
64
|
+
other_use.add(%w[systemd-boot dracut])
|
52
65
|
end
|
53
66
|
|
54
67
|
def use_flags
|
@@ -58,11 +71,7 @@ module Getch
|
|
58
71
|
|
59
72
|
# https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Alternative:_Using_distribution_kernels
|
60
73
|
def make
|
61
|
-
|
62
|
-
Install.new('sys-kernel/installkernel-systemd')
|
63
|
-
else
|
64
|
-
Install.new('sys-kernel/installkernel-gentoo')
|
65
|
-
end
|
74
|
+
Install.new('sys-kernel/installkernel')
|
66
75
|
|
67
76
|
# Install.new 'sys-kernel/gentoo-kernel'
|
68
77
|
Install.new 'sys-kernel/gentoo-kernel-bin'
|
data/lib/getch/version.rb
CHANGED
data/lib/getch/void/update.rb
CHANGED
@@ -26,7 +26,7 @@ module Getch
|
|
26
26
|
def update
|
27
27
|
ChrootOutput.new '/usr/bin/xbps-install -uy'
|
28
28
|
ChrootOutput.new '/usr/bin/xbps-install', '-Sy', 'base-system'
|
29
|
-
ChrootOutput.new '/usr/bin/xbps-remove -y base-
|
29
|
+
ChrootOutput.new '/usr/bin/xbps-remove -y base-container-full'
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- szorfein
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
urXgRIzALxd/xazPCnoLSXPzfJSI6Y77S1EBvhPd9RaSO8IyH9RhPDP9mnTvW2Kl
|
37
37
|
NAUnoL+txK5a
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date:
|
39
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
40
40
|
dependencies: []
|
41
41
|
description:
|
42
42
|
email:
|
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 2.
|
187
|
+
version: '2.6'
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
190
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|