# vim: filetype=sh

target_get_name() {
    echo "$(get_target_cpu "$ORIG_TREE") PC"
}

target_use_lvm() {
    echo true
}

# 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 'grub' file

target_configure_bootloader() {
    configure_bootloader
}

target_install_bootloader() {
    install_bootloader
}

target_prepare_rootfs() {
    image_type="$1"
    chroot_status="$2"
    if [ "$chroot_status" = "inside" ]
    then
        prepare_rootfs
    fi
}

target_cleanup_rootfs() {
    image_type="$1"
    chroot_status="$2"
    if [ "$chroot_status" = "inside" ]
    then
        cleanup_rootfs
    fi
}

target_get_bootloader_install_command() {
    echo grub-install
}
