# vim: filetype=sh

# Note: commented functions are optional.

target_get_name() {
    echo "Skeleton target!"
}

# system-type=installer option support requires:
# 1- target_use_lvm() to echo true
# 2- target_get_bootloader_install_command() to echo
#    an appropriate command (e.g. grub-install)

target_use_lvm() {
    echo false
}

# for details about the following functions
# see 'steps' file

#target_preliminary_steps() {
#    preliminary_steps $@
#}

#target_final_customization_steps() {
#    final_customization_steps $@
#}

# for details about the following functions
# see 'formatting' file

target_partition_image() {
    partition_image $@
}

target_format_partition() {
    format_partition $@
}

# for details about the following functions
# see 'packages' file

target_kernel_default_package() {
    kernel_default_package
}

#target_custom_packages() {
#    custom_packages
#}

# for details about the following functions
# see 'bootloader' file

target_configure_bootloader() {
    configure_bootloader
}

target_install_bootloader() {
    install_bootloader
}

#target_get_bootloader_install_command() {
#    echo my-bootloader-install
#}

# for details about the following functions
# see 'rootfs' file
# (these functions are also optional, but
# often needed.)

target_prepare_rootfs() {
    prepare_rootfs $@
}

target_cleanup_rootfs() {
    cleanup_rootfs $@
}
