Improved configure.sh and fixing KDE on Fedora 44 kickstarter #26
+18
-5
@@ -37,24 +37,37 @@ curl -fsSL ${REPO_URL%.git}/raw/branch/${REPO_BRANCH:-main}/system_setup/install
|
|||||||
sudo -E bash /tmp/install.sh
|
sudo -E bash /tmp/install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Both are optional. That way, install.sh should know what to pull.
|
Both are export parameters are optional. That way, install.sh should know what to pull and use it for your new setup.
|
||||||
|
|
||||||
## After the script completes
|
## After the script completes
|
||||||
|
|
||||||
Configure your environment before running any installation:
|
At the end of the installation, you will be asked wheter to run configure.sh . You are encouraged to do this always.
|
||||||
|
|
||||||
|
But bevor letting `configure.sh` start, there are some options for making your life easier:
|
||||||
|
|
||||||
|
1. You can either get some `setup_system.conf` file from your system admin and put it to `/opt/sys_config/config` . That way all your settings will be prefilled the right way.
|
||||||
|
|
||||||
|
2. You may also use some preconfigured file from `config.d/configure.conf(.bak)` and put it to `config.d/configure.conf` - if thats existing from the first setup of this pc.
|
||||||
|
Pleas mind, that in the meantime your config may have changed dramatically, so this may be only a good choice if your last configure was not that long ago.
|
||||||
|
|
||||||
|
3. You may also configure your environment before manually:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cp /opt/sys_config/system_setup/config.dist/setup_system.conf.dist /opt/sys_config/config/setup_system.conf
|
cp /opt/sys_config/system_setup/config.dist/setup_system.conf.dist /opt/sys_config/config/setup_system.conf
|
||||||
# Edit setup_system.conf — set TLDOMAIN, SERVERFQDN_IPA, SERVERFQDN_NC, and paths.
|
# Edit setup_system.conf — set TLDOMAIN, SERVERFQDN_IPA, SERVERFQDN_NC, paths and all you need
|
||||||
```
|
```
|
||||||
|
|
||||||
Optionally add local per-machine overrides in `config.d/`:
|
Mind, that this would be the job of `configure.sh`
|
||||||
|
|
||||||
|
4. Optionally add additional local per-machine overrides in `config.d/`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Example: use the devel branch on this machine
|
# Example: always use the devel branch on this machine, no matter what was specified anywhere
|
||||||
echo 'export REPO_BRANCH="devel"' > /opt/sys_config/config.d/system_defines.conf
|
echo 'export REPO_BRANCH="devel"' > /opt/sys_config/config.d/system_defines.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
|
5. Otherwise, let `configure.sh` do it's job.
|
||||||
|
|
||||||
Once configured, boot the Fedora installer from USB — Anaconda will detect the `OEMDRV` partition and run the Kickstart automatically.
|
Once configured, boot the Fedora installer from USB — Anaconda will detect the `OEMDRV` partition and run the Kickstart automatically.
|
||||||
|
|
||||||
## Supported filesystems for shrinking
|
## Supported filesystems for shrinking
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ do_configure() {
|
|||||||
echo "Invalid choice or error in selection made."
|
echo "Invalid choice or error in selection made."
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
cp "${CONF_DIST}" "$CONF_FILE"
|
cp "${CONF_DIST}" "$CONF_PRE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@@ -101,6 +101,11 @@ do_configure() {
|
|||||||
set_conf_var "REPO_BRANCH" "$REPO_BRANCH"
|
set_conf_var "REPO_BRANCH" "$REPO_BRANCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Now there should all starting values be defined in $CONF_PRE file.
|
||||||
|
# We will additionally first read the dists defaults again to make sure, that all relevant settings that may be new to existing configs are predefined
|
||||||
|
# Could be no good idea when sysadmins are only deleting lines instead of unsettings its value, but makes sure there is not missing something for setup
|
||||||
|
source "$CONF_DIST"
|
||||||
|
#Now, read the users setting
|
||||||
source "$CONF_PRE"
|
source "$CONF_PRE"
|
||||||
VARS=("TLDOMAIN" "SERVERFQDN_IPA" "DOMAIN" "SERVERFQDN_NC" "IPAVAULTUSE" "IPAVAULTNAME" "DISTCONFIGPATH_SRC" "CLIENTADMINGROUP" )
|
VARS=("TLDOMAIN" "SERVERFQDN_IPA" "DOMAIN" "SERVERFQDN_NC" "IPAVAULTUSE" "IPAVAULTNAME" "DISTCONFIGPATH_SRC" "CLIENTADMINGROUP" )
|
||||||
for ELE in "${VARS[@]}"
|
for ELE in "${VARS[@]}"
|
||||||
@@ -173,7 +178,8 @@ do_configure() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*) REPEAT_TEST=0
|
*) echo "Not tests available."
|
||||||
|
REPEAT_TEST=0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
[[ $REPEAT_TEST == 0 ]] && break
|
[[ $REPEAT_TEST == 0 ]] && break
|
||||||
|
|||||||
Reference in New Issue
Block a user