Improve calamares configuration

move-to-docker
Nicolas Arenas 2024-10-29 09:56:53 +01:00
parent c94eb098ca
commit 2c519bb51b
9 changed files with 119 additions and 6 deletions

View File

@ -0,0 +1,17 @@
---
efiBootLoader: "grub"
kernelSearchPath: "/boot/"
kernelInstallPath: "/boot/"
kernelPattern: "^vmlinuz.*"
loaderEntries:
- "timeout 5"
- "console-mode keep"
kernelParams: [ "quiet" ]
grubInstall: "grub-install"
grubMkconfig: "grub-mkconfig"
grubCfg: "/boot/grub/grub.cfg"
grubProbe: "grub-probe"
efiBootMgr: "efibootmgr"

View File

@ -0,0 +1,19 @@
---
extraMounts:
- device: proc
fs: proc
mountPoint: /proc
- device: sys
fs: sysfs
mountPoint: /sys
- device: /dev
mountPoint: /dev
options: [ bind ]
- device: tmpfs
fs: tmpfs
mountPoint: /run
- device: /run/dev
mountPoint: /run/dev
options: [ bind ]

View File

@ -1 +0,0 @@
../shell_chroot.conf

View File

@ -0,0 +1,11 @@
---
dontChroot: false
verbose: true
script:
- /opengnsys-installer/component-installer.sh
timeout: 600
verbose: true

View File

@ -0,0 +1,11 @@
---
dontChroot: false
verbose: true
script:
- /opengnsys-installer/component-installer.sh
timeout: 600
verbose: true

View File

@ -1 +0,0 @@
../shell_nonchroot.conf

View File

@ -0,0 +1,9 @@
---
dontChroot: true
verbose: true
script:
- mkdir -p ${ROOT}/opengnsys-installer
- cp /tmp/opengnsys-installer-configs/* ${ROOT}/opengnsys-installer

View File

@ -0,0 +1,9 @@
---
dontChroot: true
verbose: true
script:
- mkdir -p ${ROOT}/opengnsys-installer
- cp /tmp/opengnsys-installer-configs/* ${ROOT}/opengnsys-installer

View File

@ -0,0 +1,34 @@
defaultGroups:
- name: users
system: true
- dip:
system: true
- plugdev:
system: true
- lxd:
system: true
- ogadmin:
sudoersGroup: ogadmin
setRootPassword: true
doReusePassword: true
passwordRequirements:
minLength: -1 # Password at least this many characters
maxLength: -1 # Password at most this many characters
libpwquality:
- minlen=0
- minclass=0
user:
shell: /bin/bash
forbidden_names: [ root ]
home_permissions: "0700"
hostname:
location: EtcFile
writeHostsFile: true
template: "ogServer"
forbidden_names: [ localhost ]

View File

@ -41,7 +41,7 @@ sequence:
- finished
branding: default
branding: opengnsys
prompt-install: false
dont-chroot: false
oem-setup: false

View File

@ -33,18 +33,23 @@ for component in $components; do
"ogCore")
config=$(yad --form --title="Configuración para $selected_component" \
--field="Usuario administrador":TEXT \
--field="Contraseña":HIDE \
--field="Contraseña":H \
--field="Tag del contenedor":TEXT \
"ogadmin" "" "main" \
--width=400 --height=200 --center)
user=$(echo "$config" | cut -d '|' -f 1)
password=$(echo "$config" | cut -d '|' -f 2)
echo "{\"username\": \"$user\", \"password\": \"$password\"}" > $CONFIGS_DIR/"$config_file"
container_tag=$(echo "$config" | cut -d '|' -f 3)
echo "{\"username\": \"$user\", \"password\": \"$password\", \"container_version\": \"$container_tag\" }" > $CONFIGS_DIR/"$config_file"
;;
"ogGui")
config=$(yad --form --title="Configuración para $selected_component" \
--field="IP del servidor de ogCore" \
--field="Tag del contenedor":TEXT \
--width=400 --height=200 --center)
ogcore_ip=$(echo "$config" | cut -d '|' -f 1)
echo "{\"ogcore_ip\": \"$ogcore_ip\"}" > $CONFIGS_DIR/"$config_file"
container_version=$(echo "$config" | cut -d '|' -f 2)
echo "{\"ogcore_ip\": \"$ogcore_ip\" , \"container_version\": \"$container_version\" }" > $CONFIGS_DIR/"$config_file"
;;
"ogDhcp")
config=$(yad --form --title="Configuración para $selected_component" \