Compare commits
3 Commits
29568f5a05
...
9f6d352899
Author | SHA1 | Date |
---|---|---|
rockstable | 9f6d352899 | |
rockstable | 14662149fe | |
rockstable | 84f64b8eb3 |
|
@ -33,6 +33,12 @@ fai_squashfs_path: "{{ fai_dir_download + '/' + fai_squashfs_file }}"
|
|||
fai_loguser:
|
||||
fai_menu_default: 'HW4F Desktop Jammy'
|
||||
fai_nfsroot_force_rebuild: false
|
||||
#fai_flags: [verbose,sshd,createvt,menu,debug,reboot]
|
||||
fai_flags:
|
||||
- verbose
|
||||
- sshd
|
||||
- createvt
|
||||
- menu
|
||||
|
||||
fai_hw4f_password_salt: "toXu6kiez1haetan"
|
||||
fai_hw4f_rootpw_fai: "fai"
|
||||
|
|
|
@ -68,7 +68,14 @@ exit
|
|||
:fai
|
||||
kernel ${boot-root}/{{ fai_live_vmlinuz }}
|
||||
initrd ${boot-root}/{{ fai_live_initrd }} || goto reload_after_fail
|
||||
imgargs {{ fai_live_vmlinuz|basename }} ip=dhcp root=live:{{ http_mirror_fai_squashfs_url }} FAI_FLAGS=verbose,sshd,createv,menu FAI_CONFIG_SRC={{ http_mirror_fai_profiles_url }} FAI_ACTION=install net.ifnames=0
|
||||
imgargs {{ fai_live_vmlinuz | basename }} ip=dhcp root=live:{{ http_mirror_fai_squashfs_url }} FAI_FLAGS={{ fai_flags | join(',') }} FAI_CONFIG_SRC={{ http_mirror_fai_profiles_url }} FAI_ACTION=install net.ifnames=0
|
||||
boot || goto reload_after_fail
|
||||
goto start
|
||||
|
||||
:fai+reboot
|
||||
kernel ${boot-root}/{{ fai_live_vmlinuz }}
|
||||
initrd ${boot-root}/{{ fai_live_initrd }} || goto reload_after_fail
|
||||
imgargs {{ fai_live_vmlinuz | basename }} ip=dhcp root=live:{{ http_mirror_fai_squashfs_url }} FAI_FLAGS={{{ fai_flags | join(',') }},reboot FAI_CONFIG_SRC={{ http_mirror_fai_profiles_url }} FAI_ACTION=install net.ifnames=0
|
||||
boot || goto reload_after_fail
|
||||
goto start
|
||||
|
||||
|
|
|
@ -1,32 +1,33 @@
|
|||
### CONFIGURE TIME
|
||||
UTC=yes
|
||||
TIMEZONE=Europe/Berlin
|
||||
UTC="yes"
|
||||
TIMEZONE="Europe/Berlin"
|
||||
|
||||
### INSTALL PARAMETERS
|
||||
STOP_ON_ERROR=700
|
||||
MAXPACKAGES=800
|
||||
|
||||
HOSTNAME="user-pc"
|
||||
KEYMAP=de-latin1-nodeadkeys
|
||||
KEYMAP="de-latin1-nodeadkeys"
|
||||
|
||||
|
||||
# USER AND PASSWORD
|
||||
ROOTPW='{{ fai_hw4f_profile_password
|
||||
| password_hash("sha512", fai_hw4f_password_salt ) }}'
|
||||
|
||||
# START USER AND PASSWORD
|
||||
username={{ fai_hw4f_profile_username }}
|
||||
username='{{ fai_hw4f_profile_username }}'
|
||||
USERPW='{{ fai_hw4f_profile_password
|
||||
| password_hash("sha512", fai_hw4f_password_salt ) }}'
|
||||
|
||||
SUPRESS_GNOME_INITIAL_SCREEN=1
|
||||
|
||||
### ALREADY SET IN IPXE MENU ON KERNEL CMDLINE
|
||||
#FAI_FLAGS="verbose sshd createvt menu "
|
||||
FAI_ALLOW_UNSIGNED=0
|
||||
APTPROXY=http://{{ server_name }}:3142
|
||||
APTPROXY="http://{{ server_name }}:3142"
|
||||
|
||||
### CONFIGURE LOG UPLOAD
|
||||
{% if fai_loguser is defined and
|
||||
fai_loguser is none %}
|
||||
### DISABLE LOG UPLOAD
|
||||
LOGUSER=
|
||||
{% elif fai_loguser is defined and
|
||||
fai_loguser is not none %}
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
### FAILS: snapd is not running during FAI
|
||||
|
||||
if [ "${#SNAPS[*]}" -eq 0 ]; then
|
||||
SNAPS=( firefox )
|
||||
fi
|
||||
|
||||
function package_exists() {
|
||||
return dpkg -l "$1" &> /dev/null
|
||||
$ROOTCMD dpkg -l "$1" &> /dev/null
|
||||
return $?
|
||||
}
|
||||
|
||||
for SNAP in $SNAPS; do
|
||||
if ! package_exists "snapd"; then
|
||||
snap install "$SNAP"
|
||||
for SNAP in "${SNAPS[@]}"; do
|
||||
if package_exists "snapd"; then
|
||||
$ROOTCMD snap install "$SNAP"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue