warding 0.1.0 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3123c9bc47351bb1c1e034f6d17678c9488a43bcd53530f6585780ee11a9fa0
4
- data.tar.gz: 20caf1e52981a0f4ef823a9499bfb2f2e0bf275f95428807d885b40824906775
3
+ metadata.gz: 61af4b1237c08e8310c900abea7ec87c83690338d9280f8fd1f560b3dd07f289
4
+ data.tar.gz: bf550f3cee879ea196711c1de7939f8bc388db847707da10e30992cb351c7794
5
5
  SHA512:
6
- metadata.gz: b4d282ad28fa2f4f4fd9d1d6330eaa6ac8d13dc10d25e6826c8e05f840d6b7b403ebd86dc629741360c301eb3b6dd5ed429c7b1a35658f1d4852428e2d492ad3
7
- data.tar.gz: 842edc0b9b428379e9c5ac9fcd4834a88c48bd4a4c7132fbb95b5b7c14103663024af032ac8a934eb46c1398a85eb05c712849a67e0df4eacccfe31a774f262f
6
+ metadata.gz: 209a4dbd18ab2939cde65efe6cf381b5e2064b336747a2f7c197ce508669c0b70a5715ae882767fc52175ef2bc6b82a3c0bd12fddae3b672927fdaccb36f66a3
7
+ data.tar.gz: 113a0a52a3943836203b3b9959308473c3beec215019a457f3dba64b8293f11fe2dcebe333dea5063a33e19796c567e0f46fd13a4270ce79c56448448018b33c
@@ -25,10 +25,11 @@ module Warding
25
25
  end
26
26
 
27
27
  def check
28
- unless `uname -a`.include?('Arch')
28
+ unless `uname -a`.include?('archiso')
29
29
  @@prompt.error('Exiting, this is not an Arch Linux distribution!')
30
30
  exit!
31
31
  end
32
+
32
33
  unless `[ -d /sys/firmware/efi ] && echo true`.include?('true')
33
34
  @@prompt.error('UEFI/EFI must be enabled to install warding')
34
35
  exit!
@@ -87,10 +88,10 @@ module Warding
87
88
 
88
89
  def install(data)
89
90
  if @@prompt.yes?('Confirm settings and continue?')
91
+
90
92
  # setup mirrorlist
91
93
 
92
94
  if data[:update_mirrors]
93
- `pacman -Sy reflector --noconfirm`
94
95
  `reflector --latest 25 --sort rate --save /etc/pacman.d/mirrorlist`
95
96
  end
96
97
 
@@ -140,7 +141,7 @@ module Warding
140
141
 
141
142
  # setup base packages
142
143
 
143
- `pacman -S archlinux-keyring --noconfirm`
144
+ `pacman -Sy`
144
145
  `pacstrap /mnt base base-devel`
145
146
  `genfstab -U /mnt >> /mnt/etc/fstab`
146
147
 
@@ -161,7 +162,7 @@ module Warding
161
162
  ::1 localhost
162
163
  127.0.1.1 warding.localdomain warding" > /mnt/etc/hosts`
163
164
 
164
- `arch-chroot /mnt echo -e "#{data[:root_password]}\n#{data[root_password]}" | passwd`
165
+ `arch-chroot /mnt echo -e "#{data[:root_password]}\n#{data[:root_password]}" | passwd`
165
166
 
166
167
  `arch-chroot /mnt pacman -Sy archlinux-keyring linux lvm2 mkinitcpio --noconfirm`
167
168
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Warding
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlos Pomin