getch 0.3.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +132 -0
- data/LICENSE +10 -0
- data/getch.gemspec +31 -0
- data/lib/getch/guard.rb +1 -1
- data/lib/getch/version.rb +1 -1
- data/lib/mkfs.rb +5 -1
- data.tar.gz.sig +0 -0
- metadata +32 -29
- 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: 6e6d53101249982f83b05a372decd08d8967c52fc952b930dff7bf4d6c31634f
|
4
|
+
data.tar.gz: 3410eab0dff20d434691e6ddb7e5f8279c6a2eb70e4d675ac5791932638cb614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d96be1666a606ef3eacd482bc539e75612844cf83406095113566901c42834e3e604d23908bbd87ab41b830c6fd1d6381a3ae36f04122c0b184dbebba192f0f8
|
7
|
+
data.tar.gz: 9ff7cb0caa78084a6bc04a6e72acec5c582e17191473583ffd0fcf9401e9275b9ae8ed9e59f68e49be0a4477f78b941348bba550c7b3d6e99b7181725b08bad9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
## 0.3.2, release 2022-10-01
|
2
|
+
* Support disk with a sector size of 512.
|
3
|
+
* Support vdx disk.
|
4
|
+
|
5
|
+
## 0.3.0, release 2022-02-17
|
6
|
+
* Gentoo with musl use an additional repo https://github.com/gentoo/musl.git.
|
7
|
+
* Gentoo use the kernel `sys-kernel/gentoo-kernel-bin` to install more quickly.
|
8
|
+
* No more need to enter password twice with Grub and encrypted system.
|
9
|
+
* Can restart the whole installation from scratch with the option `--restart`
|
10
|
+
* ZFS create pool with disk id `/dev/disk/by-id`.
|
11
|
+
* New option `--lvm` instead of `-f lvm`.
|
12
|
+
* Rename option `-z | --zoneinfo` for `-t | --timezone`. Default use `UTC`.
|
13
|
+
* Use a generic hostname `host` rather than '{os}-hatch-{randomID}'
|
14
|
+
* Musl can be installed with the `--musl` option.
|
15
|
+
* Use colors in the script, look better.
|
16
|
+
|
17
|
+
## 0.1.9, release 2022-01-26
|
18
|
+
* Gentoo use now the kernel `sys-kernel/gentoo-kernel` [project](https://wiki.gentoo.org/wiki/Project:Distribution_Kernel), updates are automatic.
|
19
|
+
* Correct the download of the `rootfs tarball` for VoidLinux.
|
20
|
+
* ZFS now import pool by ID.
|
21
|
+
* ZFS use the cmdline `zfs_arc_max` to limit the max Memory used.
|
22
|
+
* Gentoo and Void use `Dracut`, remove `Genkernel`.
|
23
|
+
* Gentoo use PAM sha512 with `libpwquality` for the authentication.
|
24
|
+
* Add the code linter Rubocop, correct around 1.5k lines of code.
|
25
|
+
|
26
|
+
## 0.1.6, release 2021-06-30
|
27
|
+
+ Getch can also install [Void Linux](https://voidlinux.org/).
|
28
|
+
+ New option `-o|--os NAME`, work only with NAME = gentoo | void.
|
29
|
+
+ ZFS write the hostid with `zgenhostid $(hostid)`
|
30
|
+
+ Add a systctl.conf to enforce TCP/IP stack hardened.
|
31
|
+
+ README improved.
|
32
|
+
+ More close of the community standard [github](https://github.com/szorfein/getch/community).
|
33
|
+
|
34
|
+
## 0.1.4, release 2021-06-20
|
35
|
+
* Install `iptables` by default.
|
36
|
+
* Control input for options `--disk`, `--format`, `--zoneinfo`, `--keymap`.
|
37
|
+
* Add a `/etc/portage/bashrc` to automatically signing kernel modules with `emerge`.
|
38
|
+
* Now clean properly another disk used with option `--separate-x DISK`.
|
39
|
+
* For ZFS, use `blockdev --getpbsz` to find correct bloc (sector) size.
|
40
|
+
* Populate `/etc/modules-load.d/` with modules found with `lsmod` (only few wifi's, flash usb related (ehci, ohci, xhci, etc)).
|
41
|
+
* Remove the package `dev-util/dwarves`.
|
42
|
+
|
43
|
+
## 0.1.3, release 2021-05-17
|
44
|
+
* LVM use the format /dev/vg_name/lv_name for mount/format/fstab.
|
45
|
+
* Stop using `euse` from `gentoolkit`, use native Ruby code here.
|
46
|
+
* Optimization on package installation, they shouln't be installed more than once.
|
47
|
+
* Regroup use flags under Getch::Gentoo::UseFlag.
|
48
|
+
* Upd Bask v0.5 (zstd compression, better support for wifi...)
|
49
|
+
* Config for systemd-resolved, enable DNS over TLS with Quad9 (9.9.9.9)
|
50
|
+
* Add configs for systemd-network with DHCP for wifi and ethernet.
|
51
|
+
* Correct permissions (/home/[user] and /etc/portage)
|
52
|
+
|
53
|
+
## 0.1.2, release 2021-05-12
|
54
|
+
* DOCS update.
|
55
|
+
* Keep Nano for those who need :)
|
56
|
+
* ZFS use the last version >=2.0 with kernel stable =5.10
|
57
|
+
* ZFS create a Log device and Cache device if getch is used with `--separate-cache`.
|
58
|
+
* GRUB or Systemd-boot can now be installed on separate disk with `--separate-boot`.
|
59
|
+
* Adding flag for ZFS `-o autotrim=on` (used with `zpool create`).
|
60
|
+
* Encrypted swap use: `cipher=aes-xts-plain64:sha256,size=512` by default.
|
61
|
+
* In the make.conf: add `-fomit-frame-pointer`, designed to reduce generated code size.
|
62
|
+
|
63
|
+
## 0.1.1, release 2020-11-01
|
64
|
+
* Change mountpoint for the esp at /efi rather than /boot/efi
|
65
|
+
* Replace Garden by Bask https://github.com/szorfein/bask
|
66
|
+
* Correct option --username USERNAME, do not create a new partition.
|
67
|
+
* New set of options --separate-{boot,cache,home} to install them on another disk
|
68
|
+
* Refactor codes
|
69
|
+
* Add cpu name to COMMON_FLAGS
|
70
|
+
* Add cpuflags with app-portage/cpuid2cpuflags
|
71
|
+
+ Use the whole disk space available for / when option --username is unset
|
72
|
+
|
73
|
+
## 0.1.0, release 2020-10-15
|
74
|
+
* Add the (Zeta) filesystem ZFS
|
75
|
+
* `emerge --depclean` to save space.
|
76
|
+
* Add a message when getch have finish, keep /mnt/gentoo if you need to add something.
|
77
|
+
* Use systemd-detect-virt to detect a Virtual Guest.
|
78
|
+
|
79
|
+
## 0.0.9, release 2020-10-03
|
80
|
+
* Add encryption on ext4 and lvm (BIOS,UEFI)
|
81
|
+
* Correct KEYMAP="yes" with genkernel
|
82
|
+
* Renaming option keyboard with keymap
|
83
|
+
* GPG verification for ebuild
|
84
|
+
|
85
|
+
## 0.0.8, release 2020-09-30
|
86
|
+
* Adding LVM via the option fs, `--fs lvm`.
|
87
|
+
* Systemd-boot use the value of PARTUUID without initramfs.
|
88
|
+
* Include lib logger.
|
89
|
+
* Enhance functions to call program system Emerge, Make, ...
|
90
|
+
|
91
|
+
## 0.0.7, release 2020-09-22
|
92
|
+
* Correct fstab.
|
93
|
+
* Repair GRUB/fstab for BIOS system, add secure cmdline.
|
94
|
+
* Create a swap volume equal to the memory installed.
|
95
|
+
* Add vim and sudo
|
96
|
+
|
97
|
+
## 0.0.6, release 2020-09-19
|
98
|
+
* Add support for QEMU guest with KVM and Virtio driver
|
99
|
+
* Kernel compilation, initialize a config file with `make localyesconfig`.
|
100
|
+
* More modular codes to start with encryption and other filesystems.
|
101
|
+
* Add the new option --verbose to display output of compilation, etc...
|
102
|
+
|
103
|
+
## 0.0.5, release 2020-09-17
|
104
|
+
* Generate a hostname
|
105
|
+
* Configure systemd-boot for UEFI system
|
106
|
+
|
107
|
+
## 0.0.4, release 2020-09-16
|
108
|
+
* Boot on a BIOS system with VirtualBox
|
109
|
+
* Install Grub
|
110
|
+
* Create user
|
111
|
+
* Create passwd for root and user
|
112
|
+
* Check lsmod to install deps (like wpa_supplicant) and patch the kernel
|
113
|
+
|
114
|
+
## 0.0.3, release 2020-09-14
|
115
|
+
* Add dhcpcd, gentoo-sources, linux-firmware
|
116
|
+
* Kernel build by using https://github.com/szorfein/garden
|
117
|
+
* Populate /etc/portage (/etc/portage/package.{use,unmask,accept_keywords}/zzz_via_autounmask)
|
118
|
+
* Download all the lastest ebuild via emerge-webrsync
|
119
|
+
* Update gentoo via emerge -uDN @world
|
120
|
+
|
121
|
+
## 0.0.2, release 2020-09-12
|
122
|
+
* Getch genere a file /tmp/install_gentoo to avoid to remake same task over and over
|
123
|
+
* Support for ext4
|
124
|
+
* Mount partition on /mnt/gentoo during the install
|
125
|
+
* Download, verify the checksum and decompress the last stage3-amd64-systemd
|
126
|
+
|
127
|
+
## 0.0.1, release 2020-09-10
|
128
|
+
* Partition disk (at least 15G required) with sgdisk (create /boot, /, /home, and swap)
|
129
|
+
* Support for one disk with -d|--disk
|
130
|
+
* Add few options for the CLI
|
131
|
+
* Add bin/setup.sh to install ruby when boot on a ISO file
|
132
|
+
* Init project
|
data/LICENSE
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 szorfein
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10
|
+
|
data/getch.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/lib/getch/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = 'getch'
|
5
|
+
s.version = Getch::VERSION
|
6
|
+
s.platform = Gem::Platform::RUBY
|
7
|
+
s.summary = 'A CLI tool to install Gentoo or VoidLinux.'
|
8
|
+
s.author = 'szorfein'
|
9
|
+
s.email = ['szorfein@protonmail.com']
|
10
|
+
s.homepage = 'https://github.com/szorfein/getch'
|
11
|
+
s.metadata = {
|
12
|
+
'source_code_uri' => 'https://github.com/szorfein/getch',
|
13
|
+
'changelog_uri' => 'https://github.com/szorfein/getch/blob/master/CHANGELOG.md',
|
14
|
+
'bug_tracker_uri' => 'https://github.com/szorfein/getch/issues',
|
15
|
+
'wiki_uri' => 'https://github.com/szorfein/getch'
|
16
|
+
}
|
17
|
+
s.license = 'MIT'
|
18
|
+
s.required_ruby_version = '>= 2.5.0'
|
19
|
+
|
20
|
+
s.files = Dir.glob('{assets,lib}/**/*', File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
|
21
|
+
|
22
|
+
s.files += %w[CHANGELOG.md LICENSE README.md]
|
23
|
+
s.files += %w[getch.gemspec]
|
24
|
+
|
25
|
+
s.bindir = 'bin'
|
26
|
+
s.executables << 'getch'
|
27
|
+
s.require_paths = ['lib']
|
28
|
+
|
29
|
+
s.cert_chain = ['certs/szorfein.pem']
|
30
|
+
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
|
31
|
+
end
|
data/lib/getch/guard.rb
CHANGED
@@ -16,7 +16,7 @@ module Getch
|
|
16
16
|
module Guard
|
17
17
|
def self.disk(name)
|
18
18
|
raise InvalidDisk, 'No disk.' unless name
|
19
|
-
raise InvalidDisk, "Bad device name #{name}." unless name.match(
|
19
|
+
raise InvalidDisk, "Bad device name #{name}." unless name.match(/^?d[a-z]{1}$/)
|
20
20
|
raise InvalidDisk, "Disk /dev/#{name} no found." unless File.exist? "/dev/#{name}"
|
21
21
|
|
22
22
|
name
|
data/lib/getch/version.rb
CHANGED
data/lib/mkfs.rb
CHANGED
@@ -74,7 +74,11 @@ module Mkfs
|
|
74
74
|
|
75
75
|
def mkfs_ext4(path)
|
76
76
|
bs = Getch::Helpers.get_bs(path)
|
77
|
-
|
77
|
+
if bs == '512'
|
78
|
+
Getch::Command.new('mkfs.ext4', '-F', path)
|
79
|
+
else
|
80
|
+
Getch::Command.new('mkfs.ext4', '-F', '-b', bs, path)
|
81
|
+
end
|
78
82
|
end
|
79
83
|
|
80
84
|
def mkfs_xfs(path)
|
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.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- szorfein
|
@@ -10,32 +10,33 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
13
|
+
MIIEhTCCAu2gAwIBAgIBATANBgkqhkiG9w0BAQsFADBEMREwDwYDVQQDDAhzem9y
|
14
|
+
ZmVpbjEaMBgGCgmSJomT8ixkARkWCnByb3Rvbm1haWwxEzARBgoJkiaJk/IsZAEZ
|
15
|
+
FgNjb20wHhcNMjIwOTA4MDYyNjE5WhcNMjMwOTA4MDYyNjE5WjBEMREwDwYDVQQD
|
16
|
+
DAhzem9yZmVpbjEaMBgGCgmSJomT8ixkARkWCnByb3Rvbm1haWwxEzARBgoJkiaJ
|
17
|
+
k/IsZAEZFgNjb20wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDEJNhl
|
18
|
+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f3B+X6A5D7uBq
|
33
|
+
63X6Kx09VkntVOrifd3W4TwjDlyAMpB+50OIi3ErPnH2R4i09qnCiZmcVWATBVKw
|
34
|
+
e2QSloIAUZJwEFkrRqWPNVi8sr+BcMeuKpXaOwpbkP+xq/W2EKlUQKhPXMXS4jvC
|
35
|
+
MuTi+RjpSNKZxzBrOlK2eMIpiFrugF7nzKcM9EGnWRWUb899drCcD4VJhjPtgpn+
|
36
|
+
aEJeKq4/BlIwMlXPe+W5C8zp2i8hgG1/OYbwbGE1p2iRi1NIK7G/HyRqQjOqJxzE
|
37
|
+
LLknX69FN7/G
|
37
38
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-
|
39
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
39
40
|
dependencies: []
|
40
41
|
description:
|
41
42
|
email:
|
@@ -43,13 +44,15 @@ email:
|
|
43
44
|
executables:
|
44
45
|
- getch
|
45
46
|
extensions: []
|
46
|
-
extra_rdoc_files:
|
47
|
-
- README.md
|
47
|
+
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- CHANGELOG.md
|
50
|
+
- LICENSE
|
49
51
|
- README.md
|
50
52
|
- assets/network-stack.conf
|
51
53
|
- assets/system.conf
|
52
54
|
- bin/getch
|
55
|
+
- getch.gemspec
|
53
56
|
- lib/clean.rb
|
54
57
|
- lib/cmdline.rb
|
55
58
|
- lib/cryptsetup.rb
|
@@ -188,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
191
|
- !ruby/object:Gem::Version
|
189
192
|
version: '0'
|
190
193
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.3.19
|
192
195
|
signing_key:
|
193
196
|
specification_version: 4
|
194
197
|
summary: A CLI tool to install Gentoo or VoidLinux.
|
metadata.gz.sig
CHANGED
Binary file
|