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 +4 -4
- data/lib/warding.rb +5 -4
- data/lib/warding/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61af4b1237c08e8310c900abea7ec87c83690338d9280f8fd1f560b3dd07f289
|
4
|
+
data.tar.gz: bf550f3cee879ea196711c1de7939f8bc388db847707da10e30992cb351c7794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 209a4dbd18ab2939cde65efe6cf381b5e2064b336747a2f7c197ce508669c0b70a5715ae882767fc52175ef2bc6b82a3c0bd12fddae3b672927fdaccb36f66a3
|
7
|
+
data.tar.gz: 113a0a52a3943836203b3b9959308473c3beec215019a457f3dba64b8293f11fe2dcebe333dea5063a33e19796c567e0f46fd13a4270ce79c56448448018b33c
|
data/lib/warding.rb
CHANGED
@@ -25,10 +25,11 @@ module Warding
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def check
|
28
|
-
unless `uname -a`.include?('
|
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 -
|
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
|
|
data/lib/warding/version.rb
CHANGED