warding 0.2.3 → 0.2.4

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: 81fa1b5b10e9a4384861450dcceafd24ec0261c98f3ce0dc04f0e603e667ebf5
4
- data.tar.gz: eceff3e46e35301b583285e4dfae47b33354e70f4f189d7028355d661888d0f1
3
+ metadata.gz: 9c6e2a5ecc183e76cc17c2a4c16379223a2196b8ac65058318d8807629d0596f
4
+ data.tar.gz: d76f2e4d69c808200b9381b77ebe3e4d3f55c50952d3eb717085af8d916b0e5c
5
5
  SHA512:
6
- metadata.gz: 42bdac299222725ab7c8f4b791653816d6165ae5bcdfac5226c42a8f90a2f6ed85997b63cc2d791222cafb05c98cd222c37471d3891d1ac54c9a503a5acd5021
7
- data.tar.gz: 5f5dffce2b978e2707808d9c87c679f7381eb1ae79311c6fa3b75f90da5cf3b8c36aaee51aae7081415c499384e5ab72b0f6d6f14e15a0e6376eeb7de970b0b9
6
+ metadata.gz: 7b60126b88ec985713877eea1403449cce055c54ee958daf2a38b1a7a9bf77b4453373267262e2e41fc2b923d362a7e6a846181c8b53d2c7ece343b4566dd369
7
+ data.tar.gz: 16f7123ff0d1dec8da58a4e7b6cff307d5a25185fa677493f1721647cf0ff370f8e6fec33cd8c1f8c5ce0707a2bceac018ad3c66696418d2e08eed34fa81838d
data/README.md CHANGED
@@ -20,6 +20,11 @@ gem install warding
20
20
 
21
21
  ## Tasklist
22
22
 
23
+ * Move base packages to `pacstrap`.
24
+ * Fix steps that contain pipes.
25
+ * Add `EDITOR` setting.
26
+ * Add AUR support.
27
+ * Add `NetworkManager` support.
23
28
  * Code missing features.
24
29
  * Add extra checks.
25
30
  * Test installation.
@@ -156,7 +156,7 @@ module Warding
156
156
 
157
157
  def setup_packages
158
158
  `pacman -Sy`
159
- `pacstrap /mnt base base-devel`
159
+ `pacstrap /mnt base base-devel linux linux-firmware lvm2 mkinitcpio man-db nano fuse wget openbsd-netcat dhcpcd samba openssh openvpn unzip vim git zsh`
160
160
  `genfstab -U /mnt >> /mnt/etc/fstab`
161
161
  end
162
162
 
@@ -175,7 +175,6 @@ module Warding
175
175
 
176
176
  `arch-chroot /mnt echo -e "#{password}\n#{password}" | passwd`
177
177
 
178
- `arch-chroot /mnt pacman -Sy linux lvm2 mkinitcpio --noconfirm`
179
178
  `sed -i "/^HOOK/s/filesystems/lvm2 filesystems/" /mnt/etc/mkinitcpio.conf`
180
179
  `arch-chroot /mnt mkinitcpio -p linux`
181
180
  `arch-chroot /mnt pacman -S intel-ucode --noconfirm`
@@ -200,21 +199,21 @@ module Warding
200
199
 
201
200
  def setup_usability
202
201
  # TODO: include gnome desktop
203
- `arch-chroot /mnt pacman -S nano fuse wget cmake openbsd-netcat dhcpcd samba openssh openvpn unzip vim xorg-server xf86-video-intel plasma konsole dolphin kmix sddm wget git kvantum-qt5 zsh --noconfirm`
202
+ `arch-chroot /mnt pacman -S xorg-server xf86-video-intel plasma konsole dolphin kmix sddm kvantum-qt5 --noconfirm`
204
203
  `mkdir /mnt/etc/sddm.conf.d`
205
204
  `echo "[Theme]\nCurrent=breeze" > /mnt/etc/sddm.conf.d/theme.conf`
206
205
  `echo "[Autologin]\nUser=root" > /mnt/etc/sddm.conf.d/login.conf`
207
206
  `arch-chroot /mnt systemctl enable dhcpcd`
208
207
  `arch-chroot /mnt systemctl enable sddm`
209
- `arch-chroot /mnt wget -qO- https://blackarch.org/strap.sh | sh`
210
- `arch-chroot /mnt wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh`
208
+ `arch-chroot /mnt wget -q https://blackarch.org/strap.sh -O /tmp/strap.sh; bash /tmp/strap.sh`
209
+ `arch-chroot /mnt wget -q https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O /tmp/zsh.sh; bash /tmp/zsh.sh`
211
210
  end
212
211
 
213
212
  setup_usability
214
213
 
215
214
  def setup_visuals
216
- `arch-chroot /mnt wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/arc-kde/master/install.sh | sh`
217
- `arch-chroot /mnt wget -qO- https://git.io/papirus-icon-theme-install | sh`
215
+ `arch-chroot /mnt wget -q https://raw.githubusercontent.com/PapirusDevelopmentTeam/arc-kde/master/install.sh -O /tmp/theme.sh; bash /tmp/theme.sh`
216
+ `arch-chroot /mnt wget -q https://git.io/papirus-icon-theme-install -O /tmp/papirus.sh; bash /tmp/papirus.sh`
218
217
  end
219
218
 
220
219
  setup_visuals if data[:extra_settings].include?("themes")
@@ -229,10 +228,17 @@ module Warding
229
228
  setup_extras if data[:extra_settings].include?("tools")
230
229
 
231
230
  def setup_cron
232
- # TODO: include crons
231
+ `arch-chroot /mnt pacman -S cronie --noconfirm`
232
+ `systemctl enable cronie`
233
+ `#!/bin/bash\nreflector --latest 25 --sort rate --save /etc/pacman.d/mirrorlist > /etc/cron.hourly/mirrorlist`
234
+ `#!/bin/bash\npacman -Sy > /etc/cron.weekly/pacmansync`
235
+ `#!/bin/bash\npacman -Syu --noconfirm > /etc/cron.monthly/systemupgrade`
233
236
  end
234
237
 
238
+ setup_cron if data[:extra_settings].include?("cron")
239
+
235
240
  def finish
241
+ `umount -R /mnt`
236
242
  `reboot`
237
243
  end
238
244
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Warding
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlos Pomin