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 imenu -m "preparing installation" &
24 curl -s 'https://raw.githubusercontent.com/instantOS/instantLOGO/master/ascii.txt' | sed 's/^/ /g'
29 if ! command -v imenu; then
30 touch /tmp/removeimenu
34 curl -s https://raw.githubusercontent.com/instantOS/imenu/master/imenu.sh >/usr/bin/imenu
35 chmod 755 /usr/bin/imenu
37 while ! command -v imenu; do
38 echo "installing imenu"
39 curl -s https://raw.githubusercontent.com/instantOS/imenu/master/imenu.sh >/usr/bin/imenu
40 chmod 755 /usr/bin/imenu
44 if [ -e /usr/share/liveutils ]; then
47 echo "$@" >/opt/instantprogress
51 pacman -Sy --noconfirm
52 if command -v pacstrap; then
53 pacman -S reflector --noconfirm
54 echo "selecting fastest mirror"
55 reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
58 # install dependencies
59 pacman -Sy --noconfirm
60 pacman -S git --noconfirm --needed
63 [ -e instantARCH ] && rm -rf instantARCH
64 git clone --depth=1 https://github.com/instantos/instantARCH.git
75 echo "in-system install"
78 if [ -e /tmp/removeimenu ]; then
82 echo "installation finished"