You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iso/chrooted.sh

20 lines
940 B
Bash

#!/bin/bash
# This file is run via mkarchiso while chrooted as the new system
echo "We're in the new system. :)"
echo "Performing minor tweaks"
sed -i 's/Arch/CrystalUX/g' /etc/issue
sed -i 's/Arch/CrystalUX/g' /etc/arch-release
sed -i 's/Arch/CrystalUX/g' /etc/os-release
echo "CrystalLive" > /etc/hostname
#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
chmod +x /usr/bin/mirrorsetup
# We don't add carly until here so that our packages which change
# /etc/skel have been installed already
/usr/bin/useradd -m carly
/usr/bin/usermod -p $(echo "pear" | openssl passwd -6 -stdin) carly
/usr/bin/usermod -p $(echo "pear" | openssl passwd -6 -stdin) root
/usr/bin/chmod +x /home/carly/.xinitrc
echo "menu" >> /home/carly/.bashrc
chmod +x /etc/crystal/bootopts/*
echo "Configured the 'carly' user. Exiting chroot."