OSDN Git Service

fix chmod
[instantos/instantARCH.git] / systeminstall.sh
1 #!/bin/bash
2
3 source /root/instantARCH/installutils.sh
4
5 chrootscript "depend/depend" "preparing installer packages"
6 chrootscript "depend/depend" "preparing installer packages"
7 chrootscript "depend/system" "installing dependencies"
8 chrootscript "chroot/chroot" "configuring system"
9 chrootscript "chroot/drivers" "installing drivers"
10 chrootscript "lang/timezone" "settings time"
11
12 # grub: install package, install, generate config
13 if efibootmgr; then
14     chrootscript "bootloader/efi" "installing bootloader"
15 else
16     escript bootloader/install "installing bootloader"
17 fi
18
19 chrootscript "user/user" "setting up user" &&
20     chrootscript "network/network" "setting up networkmanager" &&
21     chrootscript "bootloader/config" "configuring bootloader"
22
23 touch /opt/noerror
24 chrootscript "lang/locale" "setting locale"
25 [ -e /opt/noerror ] && rm /opt/noerror
26
27 # make instantOS packages optional
28 if ! iroot onlyarch &&
29     ! [ -e /opt/onlyarch ]; then
30     chrootscript "instantos/install" "configuring instantOS, this will take a while"
31     if grep -iq 'manjaro' /etc/os-release; then
32         echo "manjaro extra steps"
33         chrootscript "chroot/chroot" "extra steps for manjaro"
34     fi
35 fi
36
37 # mark installation as susccessful
38 touch /opt/installsuccess