mirror of https://github.com/archzfs/archzfs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.3 KiB
68 lines
1.3 KiB
9 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
|
||
|
export script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
|
||
|
|
||
|
if ! source ${script_dir}/lib.sh; then
|
||
|
echo "!! ERROR !! -- Could not load lib.sh!"
|
||
|
exit 155
|
||
|
fi
|
||
|
|
||
|
|
||
|
# source_safe "${script_dir}/archzfs-conf.sh"
|
||
|
source_safe "${script_dir}/test-archiso.sh"
|
||
|
source_safe "${script_dir}/test-boot.sh"
|
||
|
source_safe "${script_dir}/test-chroot.sh"
|
||
|
source_safe "${script_dir}/test-conf.sh"
|
||
|
source_safe "${script_dir}/test-fs.sh"
|
||
|
source_safe "${script_dir}/test-hooks.sh"
|
||
|
source_safe "${script_dir}/test-pacman.sh"
|
||
|
|
||
|
|
||
|
export debug_flag=1
|
||
|
export dry_run=0
|
||
|
|
||
|
|
||
|
# Install nfs mount points to the archiso environment
|
||
|
test_fs_config_nfs
|
||
|
|
||
|
|
||
|
# Install the archzfs repo to the archiso environment
|
||
|
test_pacman_config
|
||
|
|
||
|
|
||
|
# Install the zfs root filesystem for the test
|
||
|
test_fs_config_root_preinstall
|
||
|
|
||
|
|
||
|
# Install base packages into the chroot
|
||
|
test_pacman_pacstrap
|
||
|
|
||
|
|
||
|
# Install nfs mount points to the arch chroot environment
|
||
|
test_fs_config_nfs "/mnt/ROOT"
|
||
|
|
||
|
|
||
|
# Configure pacman for the arch chroot environment
|
||
|
test_pacman_config "/mnt/ROOT"
|
||
|
|
||
|
|
||
|
# Finish installing arch in the chroot environment
|
||
|
test_chroot_setup "/mnt/ROOT"
|
||
|
|
||
|
|
||
|
# Install the boot loader!
|
||
|
test_bootloader_install
|
||
|
|
||
|
|
||
|
# Filesystem things to do after installation
|
||
|
test_fs_config_root_postinstall
|
||
|
|
||
|
|
||
|
exit 0
|
||
|
|
||
|
|
||
|
# Reboot!
|
||
|
setup_exit
|