armbian_build/extensions/fs-nilfs2-support.sh
ColorfulRhino cc59d8af9e extensions: Add "Extension: ${EXTENSION}: " prefix to some extension logs
Establish some consistency with extension logging. Some extensions use another format:
display_alert "message" "${EXTENSION}" "info"

These were *not* adapted to this new schema.
2024-07-18 12:30:11 +02:00

18 lines
730 B
Bash
Executable File

# Enable this extension to include the required dependencies for building.
# This is automatically enabled if ROOTFS_TYPE is set to nilfs2 in main-config.sh.
function extension_prepare_config__add_to_image_nilfs-tools() {
display_alert "Extension: ${EXTENSION}: Adding extra packages to image" "nilfs-tools" "info"
add_packages_to_image nilfs-tools
}
function add_host_dependencies__add_nilfs_tools() {
display_alert "Extension: ${EXTENSION}: Adding packages to host dependencies" "nilfs-tools" "debug"
EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} nilfs-tools" # @TODO: convert to array later
}
function pre_update_initramfs__add_module_into_initramfs_config() {
echo "nilfs2" >> "$MOUNT"/etc/initramfs-tools/modules
return 0
}