Skip to content

Commit

Permalink
customization templates: removed outdated text from user_commands.bas…
Browse files Browse the repository at this point in the history
…h; added user-commands-before.bash
  • Loading branch information
manuel-192 committed Jan 14, 2024
1 parent adf09a5 commit 177c423
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
#
# A template file for configuring the calamares installer.
# This will be called before starting calamares.
# The chosen install mode (offline or online) is the only parameter.
#
# To use this, add your required commands below.
# You may also "uncomment" any of the examples below, if needed.

install_mode="$1" # value: 'offline' or 'online'

## Example 1: set KDE-Desktop as default.
# printf "\ndefault: KDE-Desktop\n" >> /etc/calamares/modules/packagechooser.conf

## Example 2: change the default filesystem from ext4 to btrfs in virtualbox VM.
# if [ "$(device-info --virtualbox)" = "yes" ] ; then
# sed -i /etc/calamares/modules/partition.conf -E \
# -e 's|^defaultFileSystemType:.*|defaultFileSystemType: "btrfs"|' \
# -e 's|^(availableFileSystemTypes:.*)"ext4","btrfs"|\1"btrfs","ext4"|'
# fi
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# - etc.
#
# Example commands:
#
# pacman -S --noconfirm --needed gufw geany chromium
# pacman -Rsn --noconfirm xed
# systemctl enable ufw
Expand All @@ -43,25 +42,8 @@
# Then you may write files under folder
# /home/$username
#
# For ISOs released before year 2022:
# Find your new username with command
# username=$(cat /tmp/new_username.txt)
#
# New installer feature at 2023-Feb-02:
# To help customizing calamares on the ISO, user_commands.bash will be called
# (as root) with 2 parameters:
# --iso-config
# "install_mode" (one of: online, offline, community)
# before starting the calamares installer.
# For example:
# bash ~/user_commands.bash --iso-config online
#
#----------------------------------------------------------------------------------
# Full example (to try it, remove the first '#' from the lines below):
#
# #!/bin/bash
#
# # Note: needs ISO since year 2022
# Full but artificial example (to try it, remove the first '#' from the lines below):
#
# username="$1"
# echo "# Hello world!" >> /home/$username/.bashrc
Expand Down

0 comments on commit 177c423

Please sign in to comment.