Browse Source
Add hook to create the Mender Configure state folder in the data partition
Changelog: none
Signed-off-by: Fabio Tranchitella <fabio.tranchitella@northern.tech>
2.5.x
Fabio Tranchitella
4 years ago
No known key found for this signature in database
GPG Key ID: 8473062B7CF094BA
1 changed files with
11 additions and
0 deletions
-
configs/images/raspberrypi_raspbian_config
|
@ -47,6 +47,17 @@ EOF |
|
|
|
|
|
|
|
|
PLATFORM_MODIFY_HOOKS+=(grow_data_partition) |
|
|
PLATFORM_MODIFY_HOOKS+=(grow_data_partition) |
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
|
# Create the Mender Configure state folder in the data partition and symlink it |
|
|
|
|
|
# |
|
|
|
|
|
function create_mender_configure_state_folder_data_partition() { |
|
|
|
|
|
log_info "Creating the Mender Configure state folder in the data partition" |
|
|
|
|
|
run_and_log_cmd "sudo mkdir -p work/rootfs/data/mender-configure" |
|
|
|
|
|
run_and_log_cmd "sudo ln -sf /data/mender-configure work/rootfs/var/lib/mender-configure" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PLATFORM_MODIFY_HOOKS+=(create_mender_configure_state_folder_data_partition) |
|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
# Remove /etc/mender/artifact_info from image, expected to be populated at setup time |
|
|
# Remove /etc/mender/artifact_info from image, expected to be populated at setup time |
|
|
# |
|
|
# |
|
|