3 ###################################################
4 ## This is the official installer for instantOS ##
5 ## instantOS is migrating from calamares to this ##
6 ###################################################
8 # main script calling others
10 if ! whoami | grep -iq '^root'; then
11 echo "not running as root, switching"
12 curl -Lg git.io/instantarch | sudo bash
16 if [ -e /usr/share/liveutils ]; then
17 echo "preparing isntallation
18 OK" | instantmenu -c -bw 4 -l 2 &
23 curl -s 'https://raw.githubusercontent.com/instantOS/instantLOGO/master/ascii.txt' | sed 's/^/ /g'
28 if ! command -v imenu; then
29 touch /tmp/removeimenu
33 curl -s https://raw.githubusercontent.com/instantOS/imenu/master/imenu.sh >/usr/bin/imenu
34 chmod 755 /usr/bin/imenu
36 while ! command -v imenu; do
37 echo "installing imenu"
38 curl -s https://raw.githubusercontent.com/instantOS/imenu/master/imenu.sh >/usr/bin/imenu
39 chmod 755 /usr/bin/imenu
43 if [ -e /usr/share/liveutils ]; then
46 echo "$@" >/opt/instantprogress
51 pacman -Sy --noconfirm
52 pacman -S git --noconfirm --needed
55 [ -e instantARCH ] && rm -rf instantARCH
56 git clone --depth=1 https://github.com/instantos/instantARCH.git
66 echo "ask failed" && exit
73 ./localinstall.sh 2>&1 | tee /opt/localinstall &&
74 echo "system install" &&
75 ./systeminstall.sh 2>&1 | tee /opt/systeminstall
80 sudo pkill instantmenu
83 # ask to reboot, upload error data if install failed
84 if ! [ -e /opt/installfailed ] || ! [ -e /opt/installsuccess ]; then
85 if command -v zenity; then
86 zenity --question --text="installation finished. reboot?" && touch /tmp/instantosreboot
89 echo "installaion failed"
90 echo "uploading error data"
92 cat /opt/localinstall >/opt/install.log
94 if [ -e /opt/systeminstall ]; then
95 cat /opt/systeminstall >>/opt/install.log
99 cp /root/instantARCH/data/netrc ~/.netrc
100 curl -n -F 'f:1=@install.log' ix.io
101 dialog --msgbox "installation failed
102 please go to https://instantos.github.io/instantos.github.io/support
103 for assistance or error reporting" 1000 1000
107 if [ -e /tmp/removeimenu ]; then
111 echo "installation finished"
113 [ -e /tmp/instantosreboot ] && reboot