Gnome branding tests

main
Matt C 4 years ago
parent 048ffd098f
commit e9e10af37d

@ -1,33 +1,10 @@
rm -fv *.iso rm -fv *.iso
prof="crystal"
if [[ "$1" == "" ]]; then
printf "cli/gui : "
read MODE
else
MODE="$1"
fi
if [[ "$MODE" == "cli" ]]; then
sed -i 's/gnome/#gnome/g' ${prof}/packages.x86_64
sed -i 's/mesa/#mesa/g' ${prof}/packages.x86_64
else
sed -i 's/DISABLED/ENABLED/g' chrooted.sh
fi
WORKDIR=$(mktemp -d) WORKDIR=$(mktemp -d)
# idk if this would've happened automatically? # idk if this would've happened automatically?
cp ${prof}/pacman.conf ${prof}/airootfs/etc/. cp crystal/pacman.conf crystal/airootfs/etc/.
cp ${prof}/packages.x86_64 ${prof}/airootfs/etc/packages.x86_64 cp crystal/packages.x86_64 crystal/airootfs/etc/packages.x86_64
cp /etc/pacman.d/mirrorlist ${prof}/airootfs/etc/pacman.d/. cp /etc/pacman.d/mirrorlist crystal/airootfs/etc/pacman.d/.
echo "Built on $(date +"%D @ %T EST")" > ${prof}/airootfs/etc/buildstamp echo "Built on $(date +"%D @ %T EST")" > crystal/airootfs/etc/buildstamp
time sudo ./mkarchiso -v -w $WORKDIR -o . ${prof} time sudo ./mkarchiso -v -w $WORKDIR -o . crystal
sudo rm -rf $WORKDIR sudo rm -rf $WORKDIR
if [[ "$MODE" == "cli" ]]; then
sed -i 's/#gnome/gnome/g' ${prof}/packages.x86_64
sed -i 's/#mesa/mesa/g' ${prof}/packages.x86_64
else
sed -i 's/ENABLED/DISABLED/g' chrooted.sh
fi

@ -1,18 +1,19 @@
#!/bin/bash #!/bin/bash
GRAPHICAL="DISABLED"
echo "New system chroot running as $(whoami)"
printf "We're in the new system."
#read
# This file is run via mkarchiso while chrooted as the new system # This file is run via mkarchiso while chrooted as the new system
echo "We're in the new system. :)" echo "chrooted in the new system, running as $(whoami)"
echo "Performing minor tweaks" echo "Performing minor tweaks"
sed -i 's/Arch Linux/CrystalUX/g' /etc/issue sed -i 's/Arch Linux/CrystalUX/g' /etc/issue
sed -i 's/Arch Linux/CrystalUX/g' /etc/arch-release sed -i 's/Arch Linux/CrystalUX/g' /etc/arch-release
sed -i 's/Arch Linux/CrystalUX/g' /etc/os-release sed -i 's/Arch Linux/CrystalUX/g' /etc/os-release
sed -i 's/LOGO=archlinux/LOGO=crystalux/g' /etc/os-release
sed -i 's/Arch Linux/CrystalUX/g' /usr/lib/os-release sed -i 's/Arch Linux/CrystalUX/g' /usr/lib/os-release
sed -i 's/LOGO=archlinux/LOGO=crystalux/g' /usr/lib/os-release
echo "CrystalLive" > /etc/hostname echo "CrystalLive" > /etc/hostname
#reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist #reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
echo "sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist" >> /usr/bin/mirrorsetup echo "sudo reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist" >> /usr/bin/mirrorsetup
@ -27,13 +28,11 @@ if [[ -d /etc/crystal/bootopts ]]; then
chmod +x /etc/crystal/bootopts/* chmod +x /etc/crystal/bootopts/*
fi fi
if [[ "$GRAPHICAL" == "DISABLED" ]]; then echo "export XDG_SESSION_TYPE=x11" > /home/crystal/.xinitrc
echo "export XDG_SESSION_TYPE=x11" > /home/crystal/.xinitrc echo "export GDK_BACKEND=x11" >> /home/crystal/.xinitrc
echo "export GDK_BACKEND=x11" >> /home/crystal/.xinitrc echo "exec gnome-session" >> /home/crystal/.xinitrc
echo "exec gnome-session" >> /home/crystal/.xinitrc chown crystal:crystal /home/crystal/.xinitrc
chown crystal:crystal /home/crystal/.xinitrc chmod +x /home/crystal/.xinitrc
chmod +x /home/crystal/.xinitrc
fi
# i'm tired ok # i'm tired ok
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen

@ -1 +1 @@
Built on 05/08/21 @ 21:09:12 EST Built on 05/08/21 @ 22:45:29 EST

@ -19,5 +19,6 @@ mesa
crystal-misc crystal-misc
crystal-cli-boot crystal-cli-boot
crystal-branding
neofetch neofetch
amethyst amethyst

@ -19,5 +19,6 @@ mesa
crystal-misc crystal-misc
crystal-cli-boot crystal-cli-boot
crystal-branding
neofetch neofetch
amethyst amethyst
Loading…
Cancel
Save