diff --git a/airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user-commands-before.bash b/airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user-commands-before.bash new file mode 100755 index 00000000..9c21a03e --- /dev/null +++ b/airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user-commands-before.bash @@ -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 diff --git a/airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user_commands.bash b/airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user_commands.bash index ee1a2c62..7f081c0c 100755 --- a/airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user_commands.bash +++ b/airootfs/root/endeavouros-skel-liveuser/src/etc/skel/user_commands.bash @@ -22,7 +22,6 @@ # - etc. # # Example commands: -# # pacman -S --noconfirm --needed gufw geany chromium # pacman -Rsn --noconfirm xed # systemctl enable ufw @@ -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