123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- # environment vars from build.sh:
- # ISO_TITLE
- # ISO_INIT
- # ISO_WMDE
- # ISO_ARCH
- # ENABLE_OFFLINE_INSTALL
- # ENABLE_TTS_BRLTTY
- ## timezone and locales ##
- readonly LOCALES="en_US\.UTF-8 \
- eo \
- es_ES\.UTF-8 \
- fr_FR\.UTF-8 \
- gl_ES\.UTF-8 \
- it_IT\.UTF-8 \
- pt_BR\.UTF-8 \
- pl_PL\.UTF-8 "
- ## pacman ##
- readonly NONSYSTEMD_REGEX='N ; s|^#\[nonsystemd\].*#Include|\[nonsystemd\]\nInclude|'
- ## services ##
- readonly OPENRC_DELETE_FILES="/etc/hostname \
- /etc/systemd/scripts/choose-mirror \
- /etc/systemd/system/choose-mirror.service \
- /etc/systemd/system/etc-pacman.d-gnupg.mount \
- /etc/systemd/system/getty@tty1.service.d/autologin.conf \
- /etc/systemd/system/pacman-init.service "
- readonly SYSTEMD_DELETE_FILES="/etc/conf.d/agetty.tty1 \
- /etc/conf.d/hostname \
- /etc/init.d/pacman-init \
- /etc/X11/Xwrapper.config"
- readonly OPENRC_SERVICES_ALL="dbus \
- elogind \
- haveged \
- NetworkManager \
- pacman-init "
- readonly OPENRC_SERVICES_GUI="alsasound"
- readonly SYSTEMD_SERVICES_ALL="choose-mirror.service \
- haveged.service \
- multi-user.target \
- pacman-init.service "
- readonly SYSTEMD_SERVICES_ACC="bluetooth.service \
- brltty.service \
- livecd-alsa-unmuter.service "
- readonly SYSTEMD_SERVICES_CLI="dhcpcd.service \
- systemd-resolved.service "
- readonly SYSTEMD_SERVICES_GUI="NetworkManager.service"
- readonly OPENRC_SERVICES="${OPENRC_SERVICES_ALL} \
- $( [[ "${ISO_WMDE}" != 'cli' ]] && echo " ${OPENRC_SERVICES_GUI}" )"
- readonly SYSTEMD_SERVICES="${SYSTEMD_SERVICES_ALL} \
- $( [[ "${ENABLE_TTS_BRLTTY}" == 'yes' ]] && echo " ${SYSTEMD_SERVICES_ACC}" ) \
- $( [[ "${ISO_WMDE}" == 'cli' ]] && echo " ${SYSTEMD_SERVICES_CLI}" || \
- echo " ${SYSTEMD_SERVICES_GUI}" ) "
- ## system defaults and root user ##
- readonly DEFAULT_SHELL=/bin/bash
- readonly NETINSTALL_MSG="To install Parabola, the system must be connected to the internet."
- readonly COMPLETE_MSG="This ISO is capable of installing a complete Parabola system\n\
- without a connection to the internet.\n\
- To fetch packages from the internet, enter this command first:\n\
- [01;37m# cp /etc/pacman-online.conf /etc/pacman.conf[0m"
- if [[ "${ENABLE_OFFLINE_INSTALL}" == 'true' ]]
- then readonly INSTALL_TYPE='Complete' ; readonly NETWORK_MOTD_MSG=${COMPLETE_MSG} ;
- else readonly INSTALL_TYPE='NetInstall' ; readonly NETWORK_MOTD_MSG=${NETINSTALL_MSG} ;
- fi
- readonly ROOT_SKEL_FILES="/etc/skel/.bash_logout \
- /etc/skel/.bash_profile \
- /etc/skel/install.sh"
- readonly MINI_SKEL_FILES="/etc/skel/.xinitrc"
- readonly LIVE_USER=parabola
- readonly DEFAULT_USER_GROUPS="adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel"
- readonly OPENRC_USER_GROUPS="disk,sys"
- [[ "${ISO_INIT}" == 'openrc' ]] && readonly LIVE_USER_GROUPS="${DEFAULT_USER_GROUPS},${OPENRC_USER_GROUPS}" ||
- readonly LIVE_USER_GROUPS="${DEFAULT_USER_GROUPS}"
- readonly TITLE_REGEX="^(.+) - (.+ Edition) (.+)$"
- readonly TITLE_ERROR_MSG="malformed ISO title:\n\t'${ISO_TITLE}'"
- ! [[ "${ISO_TITLE}" =~ ${TITLE_REGEX} ]] && echo -e "${TITLE_ERROR_MSG}" && exit 1
- readonly PRETTY_NAME="${BASH_REMATCH[ 1]}"
- readonly EDITION="${BASH_REMATCH[ 2]}"
- readonly VERSION=${BASH_REMATCH[ 3]}
- readonly RELEASE_ID=${ISO_ARCH}-${ISO_INIT}-${ISO_WMDE}
- readonly OS_PRETTY_NAME="${PRETTY_NAME}"
- readonly OS_VERSION=${VERSION}
- readonly OS_VERSION_ID="$(tr '.' '-' <<<${OS_VERSION})"
- readonly OS_VARIANT="${ISO_ARCH} ${EDITION} - (${INSTALL_TYPE})"
- readonly OS_VARIANT_ID=${RELEASE_ID}
- LOG_CONFIG() { printf "\033[01;34mconfiguring: %s\033[00m\n" "$(echo -e $*)" ; }
|