start adding software, enable zfs.target during base install
This commit is contained in:
parent
da3e75d489
commit
d1c6350f31
6 changed files with 33 additions and 5 deletions
|
@ -1,6 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
function set_root_password {
|
||||
echo "{{ root_password }}" | passwd root --stdin
|
||||
}
|
||||
|
||||
function add_admin_user {
|
||||
username="$1"
|
||||
id -u $username || useradd -m -G wheel $username
|
||||
|
@ -75,9 +79,14 @@ function configure_dhcp_ethernet {
|
|||
|
||||
function enable_systemd_services {
|
||||
systemctl enable sshd.service
|
||||
systemctl enable iwd.service
|
||||
systemctl enable zfs.target
|
||||
systemctl enable zfs-import-cache.service
|
||||
systemctl enable zfs-mount.service
|
||||
}
|
||||
|
||||
# do the stuff
|
||||
set_root_password
|
||||
add_admin_user mark
|
||||
install_paru_as mark
|
||||
install_zfs_packages_as mark
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue