mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add local switch for xorg startup
This commit is contained in:
parent
2cd6451d99
commit
aa54e17bcc
2 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue