-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsysteminstall.sh
executable file
·59 lines (47 loc) · 2.03 KB
/
systeminstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# installation steps after the base system has been installed
source /root/instantARCH/installutils.sh || exit 1
# running twice is necessary
chrootscript "depend/depend" "preparing installer packages"
chrootscript "depend/depend" "preparing installer packages"
chrootscript "artix/preinstall" "applying artix fixes"
chrootscript "depend/system" "installing dependencies"
chrootscript "chroot/chroot" "configuring system"
chrootscript "chroot/drivers" "installing drivers"
chrootscript "depend/extras" "installing extras"
chrootscript "lang/timezone" "setting time"
chrootscript "chroot/publish" "setting config permissions"
chrootscript "disk/trim" "checking for trim support"
# grub: install package, install, generate config
if ! iroot nobootloader; then
if efibootmgr; then
chrootscript "bootloader/efi" "installing bootloader"
else
chrootscript "bootloader/install" "installing bootloader"
fi
fi
chrootscript "network/network" "setting up networkmanager" &&
chrootscript "user/user" "setting up user" &&
chrootscript "bootloader/config" "configuring bootloader"
touch /opt/noerror
[ -e /opt/noerror ] && rm /opt/noerror
# make instantOS packages optional
if ! iroot onlyarch &&
! [ -e /opt/onlyarch ]; then
# important stuff
chrootscript "instantos/install" "configuring instantOS, this will take a while"
chrootscript "instantos/version" "collecting version info"
chrootscript "user/shell" "setting up instantshell zsh configuration"
chrootscript "user/appearance" "setting up default themes"
chrootscript "user/flatpak" "setting up flatpak"
if grep -iq 'manjaro' /etc/os-release; then
echo "manjaro extra steps"
chrootscript "chroot/chroot" "extra steps for manjaro"
fi
fi
chrootscript "lang/locale" "setting locale"
chrootscript "artix/postinstall" "checking for reverting artix fixes"
chrootscript "chroot/clean" "cleaning pacman cache"
chrootscript "chroot/cacheclean" "cleaning pacman cache"
# mark installation as susccessful
touch /opt/installsuccess