Skip to content

Latest commit

 

History

History
98 lines (56 loc) · 1.84 KB

REFERENCE-startup.md

File metadata and controls

98 lines (56 loc) · 1.84 KB

Startup

This script will ask users about their prefrences like disk, file system, timezone, keyboard layout, user name, password, etc.

Settings

General Settings

  • CONFIG_FILE (string)[default: $CONFIGS_DIR/setup.conf]: Location of setup.conf to be used by set_option and all subsequent scripts.

Functions

set_option()

set options in setup.conf

Output on stdout

  • Output routed to startup.log

Output on stderr

  • @stderror Output routed to startup.log

Arguments

  • $1 (string): Configuration variable.

Arguments

  • $2 (string): Configuration value.

select_option()

Renders a text based list of options that can be selected by the user using up, down and enter keys and returns the chosen option.

Arguments : list of options, maximum of 256 "opt1" "opt2" ... Return value: selected index (0 for opt1, 1 for opt2 ...)

logo()

Displays ArchTitus logo

Function has no arguments.

filesystem()

This function will handle file systems. At this movement we are handling only btrfs and ext4. Others will be added in future.

timezone()

Detects and sets timezone.

keymap()

Set user's keyboard mapping.

drivessd()

Choose whether drive is SSD or not.

diskpart()

Disk selection for drive to be used with installation.

userinfo()

Gather username and password to be used for installation.

aurhelper()

Choose AUR helper.

desktopenv()

Choose Desktop Environment

installtype()

Choose whether to do full or minimal installation.