-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcvh-install
More file actions
executable file
·56 lines (44 loc) · 1.06 KB
/
cvh-install
File metadata and controls
executable file
·56 lines (44 loc) · 1.06 KB
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
#!/bin/bash
# CodeVerse Linux Installer
# Modular installer for CodeVerse Linux distribution
# Run from live environment to install CodeVerse Linux to disk
set -o pipefail
# Installer library path
INSTALLER_LIB="/usr/lib/cvh-install"
# Source all modules
source "${INSTALLER_LIB}/ui.sh"
source "${INSTALLER_LIB}/config.sh"
source "${INSTALLER_LIB}/detect.sh"
source "${INSTALLER_LIB}/input.sh"
source "${INSTALLER_LIB}/disk.sh"
source "${INSTALLER_LIB}/packages.sh"
source "${INSTALLER_LIB}/configure.sh"
source "${INSTALLER_LIB}/finalize.sh"
# Main installation flow
main() {
# Pre-flight checks
check_root
# Welcome screen
show_welcome
# System detection
detect_boot_mode
# User input phase
select_keyboard
select_timezone
select_compositor
select_disk
set_hostname
create_user_config
# Disk preparation
partition_disk
# System installation
install_base
generate_fstab
# System configuration
configure_system
# Final setup
set_passwords
finish_installation
}
# Run main
main "$@"