3 ###################################################
4 ## This is the official installer for instantOS ##
5 ## instantOS is migrating from calamares to this ##
6 ###################################################
8 # main script calling others
10 # DO NOT USE ON ACTUAL HARDWARE YET
12 if ! whoami | grep -iq '^root'; then
13 echo "not running as root, switching"
14 curl -Lg git.io/instantarch | sudo bash
18 if [ -e /usr/share/liveutils ]; then
19 echo "preparing isntallation
20 OK" | instantmenu -c -bw 4 -l 2 &
26 curl -s 'https://raw.githubusercontent.com/instantOS/instantLOGO/master/ascii.txt' | sed 's/^/ /g'
31 if ! command -v imenu; then
32 touch /tmp/removeimenu
36 curl -s https://raw.githubusercontent.com/instantOS/imenu/master/imenu.sh >/usr/bin/imenu
37 chmod 755 /usr/bin/imenu
39 while ! command -v imenu; do
40 echo "installing imenu"
41 curl -s https://raw.githubusercontent.com/instantOS/imenu/master/imenu.sh >/usr/bin/imenu
42 chmod 755 /usr/bin/imenu
46 if [ -e /usr/share/liveutils ]; then
49 echo "$@" >/opt/instantprogress
53 pacman -Sy --noconfirm
54 if command -v pacstrap; then
55 pacman -S reflector --noconfirm
56 echo "selecting fastest mirror"
57 reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
60 # install dependencies
61 pacman -Sy --noconfirm
62 pacman -S git --noconfirm --needed
65 [ -e instantARCH ] && rm -rf instantARCH
66 git clone --depth=1 https://github.com/instantos/instantARCH.git
77 echo "in-system install"
80 if [ -e /tmp/removeimenu ]; then
84 echo "installation finished"