mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add support for nilfs2 fs based image
Signed-off-by: Igor Velkov <iav@iav.lv>
This commit is contained in:
committed by
igorpecovnik
parent
78700cf139
commit
9b68c4e42a
18
extensions/fs-nilfs2-support.sh
Executable file
18
extensions/fs-nilfs2-support.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
# 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 "Adding nilfs-tools extra package..." "${EXTENSION}" "info"
|
||||
add_packages_to_image nilfs-tools
|
||||
}
|
||||
|
||||
function add_host_dependencies__add_nilfs_tools() {
|
||||
display_alert "Adding NILFS tools to host dependencies..." "${EXTENSION}" "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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user