add local switch for xorg startup

This commit is contained in:
Tobias Powalowski 2022-05-03 15:36:34 +02:00
parent 2cd6451d99
commit aa54e17bcc
2 changed files with 12 additions and 4 deletions

View file

@ -2,6 +2,7 @@
# created by Tobias Powalowski <tpowa@archlinux.org>
. /etc/archboot/defaults
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/container.sh
. /usr/lib/archboot/update-installer.sh
[[ -z "${1}" ]] && usage

View file

@ -231,11 +231,18 @@ _kexec() {
}
_launch_xfce() {
X_PACKAGES="xorg xfce4 libtiff glib2 chromium libcups gcc-libs glibc harfbuzz avahi nss breeze-icons tigervnc perl"
if [[ -e /var/cache/pacman/pkg/archboot.db ]]; then
echo "Install packages ..."
_INSTALL_SOURCE="file:///var/cache/pacman/pkg"
_create_pacman_conf
pacman -Sy ${X_PACKAGES} --config ${_PACMAN_CONF} --noconfirm
else
echo "Updating environment ..."
pacman -Syu --ignore linux --ignore linux-firmware
echo "Install packages ..."
X_PACKAGES="xorg xfce4 libtiff glib2 chromium libcups gcc-libs glibc harfbuzz avahi nss breeze-icons tigervnc perl"
pacman -Sy ${X_PACKAGES} --noconfirm
fi
echo "Cleanup archboot environment ..."
rm -r /usr/share/{locale,man,info,doc,gtk-doc,ibus}
rm -r /usr/include