-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new template files for users to customize the install
- Loading branch information
1 parent
22de38f
commit eebd7ad
Showing
2 changed files
with
72 additions
and
28 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user-commands-before.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# | ||
# This file can contain commands that will be executed (as root) before | ||
# calamares is started. So here you may configure various settings of calamares. | ||
# | ||
# NOTE! This is an advanced feature, so you need to know *exactly* what | ||
# you are doing. Otherwise bad things can happen... | ||
# Sound knowledge of calamares, bash language, and linux commands is required | ||
# for a meaningful customization. | ||
# | ||
# If you add commands to this file, start the whole install process fresh | ||
# with terminal command 'eos-welcome' after saving this file. | ||
# | ||
# Tip: save your customized commands into a file on an internet server | ||
# and fetch that file with command: | ||
# | ||
# wget -O ~/user-commands-before.bash "URL-referring-the-file" | ||
# | ||
# Note: this file is supported in ISOs *after* Galileo Neo! | ||
# | ||
#---------------------------------------------------------------------------------- | ||
# | ||
# Now *you* can add your commands into function _IsoConfig below. | ||
# | ||
#---------------------------------------------------------------------------------- | ||
|
||
_IsoConfig() { | ||
## Add your ISO configurations here. | ||
## This is executed as root before calamares is started. | ||
|
||
local -r install_mode="$1" # 'online' or 'offline' | ||
|
||
## Now your commands. Some examples: | ||
# | ||
# Set KDE-Desktop as default: | ||
# printf "\ndefault: KDE-Desktop\n" >> /etc/calamares/modules/packagechooser.conf | ||
# ... | ||
} | ||
|
||
## Execute the commands if the parameter list is valid: | ||
|
||
case "$1" in | ||
offline | online) _IsoConfig "$1" ;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters