- install.sh: pre-create ks.cfg with o+w after permission setup so non-root users can overwrite it (OEMDRV root itself stays o=rX) - install.sh: restore su drop to $SUDO_USER when it is set and not root; fall back to direct root execution otherwise - configure.sh: remove the hard root check so both cases work - configure.md: update docs to reflect root/non-root support Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2.2 KiB
configure.sh — First-time setup wizard
Run system_setup/configure.sh on the machine that has the OEMDRV partition mounted. It guides you through all site-specific settings, tests the configuration, and leaves the system ready for a Fedora installation. Can be run as root or as a normal user — install.sh pre-creates ks.cfg at the OEMDRV root with world-write permission so both cases work.
bash /opt/sys_config/system_setup/configure.sh
What it does
-
Edits configuration values — prompts for each setting below. Press Enter to keep the shown default, or type a new value. Derived values (e.g.
SERVERFQDN_IPA) are updated immediately when you changeTLDOMAIN, so subsequent prompts always reflect your latest input.Variable Description TLDOMAINTop-level domain of your infrastructure (e.g. company.tld)SERVERFQDN_IPAFQDN of the FreeIPA server (default: ipa.<TLDOMAIN>)SERVERFQDN_NCFQDN of the Nextcloud server (default: nextcloud.<TLDOMAIN>)CLIENTADMINGROUPIPA group that receives sudo rights on clients DECRYPTEDDATADIRMount point for the decrypted user data directory ENCRYPTEDDATADIRPath of the gocryptfs-encrypted data directory IPAVAULTUSEtrueto use IPA KRA vault for the encryption key,falseto disable encryptionIPAVAULTNAMEName of the IPA vault entry (default: CLIENT_FILEENCRYPTION_<hostname>) -
Confirms the FQDN — shows the computed
FQDN(<hostname>.clients.<TLDOMAIN>) and lets you override the hostname part if needed. -
Tests the encrypted home mount — runs
mount_ecrypt_home.sh. On failure you can restart the wizard or quit. -
Obtains a Nextcloud WebDAV token — calls
get_nc_token, which opens Firefox for login. Verifies that the returned token belongs to the current user. You can retry or quit on failure. -
On success, the written config file
config.d/configure.confis picked up automatically by all other scripts instead ofconfig/setup_system.conf.
After the wizard completes
Boot the target machine from the Fedora USB installer. Anaconda detects the OEMDRV partition and runs the Kickstart automatically.