OSDN Git Service

start instantARCH markers
authorpaperbenni <paperbenni@gmail.com>
Mon, 16 Nov 2020 23:40:00 +0000 (00:40 +0100)
committerpaperbenni <paperbenni@gmail.com>
Mon, 16 Nov 2020 23:40:00 +0000 (00:40 +0100)
chroot/chroot.sh
instantos/install.sh
lang/locale.sh
lang/xorg.sh
network/network.sh
pacstrap/pacstrap.sh
vm/guestadditions.sh

index 72e188d..4ad9af5 100755 (executable)
@@ -19,6 +19,8 @@ fi
 # 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
@@ -28,13 +30,13 @@ if ! [ -e /opt/topinstall ] && ! iroot partswap; 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
index 3fc3bff..2782b0e 100755 (executable)
@@ -3,7 +3,7 @@
 # install all instantOS software
 # and apply instantOS specific changes and workarounds
 
-cd
+cd || exit 1
 
 [ -e instantOS ] && rm -rf instantOS
 
@@ -11,7 +11,8 @@ while ! git clone --depth 1 https://github.com/instantOS/instantOS; do
     imenu -m "pull failed, please connect to the internet"
 done
 
-cd instantOS
+cd instantOS || exit 1
+
 bash repo.sh
 pacman -Sy --noconfirm
 
@@ -38,7 +39,7 @@ fi
 
 yes | pacman -S libxft-bgra
 
-cd ~/instantOS
+cd ~/instantOS || exit 1
 
 # disable plymouth on artix
 if ! command -v systemctl || iroot noplymouth; then
index 320007b..fc55bb1 100755 (executable)
@@ -12,7 +12,9 @@ fi
 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
 
index 88b4dbf..40aba49 100755 (executable)
@@ -4,8 +4,8 @@
 
 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"
 
index 0722a0c..5e139e8 100755 (executable)
@@ -13,8 +13,13 @@ fi
 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
index 224f2ff..8f882ca 100755 (executable)
@@ -45,6 +45,10 @@ else
     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
index 9dfadf2..df205b4 100644 (file)
@@ -10,7 +10,7 @@ echo "installing virtualbox guest additions. This will take some time.
 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