# fix gui not showing up
sed -i 's/^#logind-check-graphical=.*/logind-check-graphical=true/' /etc/lightdm/lightdm.conf
+echo '# modified by instantARCH' >>/etc/lightdm/lightdm.conf
+
# needed to get internet to work
if ! [ -e /opt/topinstall ] && ! iroot partswap; then
if command -v systemctl; then
{
echo "swapfc_enabled=1"
echo "swapfc_max_count=8"
- } >> /etc/systemd/swap.conf
+ } >>/etc/systemd/swap.conf
fi
fi
fi
sed -i 's/# %wheel/%wheel/g' /etc/sudoers
-echo 'Defaults env_reset,pwfeedback' >> /etc/sudoers
+echo 'Defaults env_reset,pwfeedback' >>/etc/sudoers
if command -v systemctl; then
systemctl enable lightdm
# install all instantOS software
# and apply instantOS specific changes and workarounds
-cd
+cd || exit 1
[ -e instantOS ] && rm -rf instantOS
imenu -m "pull failed, please connect to the internet"
done
-cd instantOS
+cd instantOS || exit 1
+
bash repo.sh
pacman -Sy --noconfirm
yes | pacman -S libxft-bgra
-cd ~/instantOS
+cd ~/instantOS || exit 1
# disable plymouth on artix
if ! command -v systemctl || iroot noplymouth; then
sed -i 's/^[^#].*//g' /etc/locale.gen
cat "$INSTANTARCH"/data/lang/locale/"$(iroot locale)" >>/etc/locale.gen
-echo "" >>/etc/locale.gen
+echo "# modified by instantARCH
+
+" >>/etc/locale.gen
sleep 0.3
locale-gen
KEYLANG=$(iroot keyboard)
-NEWXORG=$(tail -1 /root/instantARCH/data/lang/keyboard/$KEYLANG)
-NEWKEYMAP=$(head -1 /root/instantARCH/data/lang/keyboard/$KEYLANG)
+NEWXORG="$(tail -1 /root/instantARCH/data/lang/keyboard/"$KEYLANG")"
+NEWKEYMAP="$(head -1 /root/instantARCH/data/lang/keyboard/"$KEYLANG")"
echo "setting keymap to $NEWXORG"
echo "$NEWHOSTNAME" >/etc/hostname
echo "127.0.0.1 localhost" >/etc/hosts
-echo "::1 localhost" >>/etc/hosts
-echo "127.0.1.1 $NEWHOSTNAME.localdomain $NEWHOSTNAME" >>/etc/hosts
+
+{
+ echo "::1 localhost"
+ echo "127.0.1.1 $NEWHOSTNAME.localdomain $NEWHOSTNAME"
+ echo '# modified by instantARCH'
+} >>/etc/hosts
+
pacman -S --noconfirm --needed networkmanager
if command -v systemctl; then
fstabgen -U /mnt >>/mnt/etc/fstab
fi
-cd /root
+cd /root || exit 1
+
cp -r ./instantARCH /mnt/root/instantARCH
-cat /etc/pacman.d/mirrorlist >/mnt/etc/pacman.d/mirrorlist
+{
+ cat /etc/pacman.d/mirrorlist
+ echo '# modified by instantARCH'
+} >/mnt/etc/pacman.d/mirrorlist
It is normal for the first reboot after the installation of guest additions to take longer. " | imenu -M &
sleep 2
-cd /media/virtualbox
+cd /media/virtualbox || exit
./VBoxLinuxAdditions.run
touch /opt/instantos/guestadditions