Add support for nilfs2 fs based image

Signed-off-by: Igor Velkov <iav@iav.lv>
This commit is contained in:
Igor Velkov
2023-05-15 02:17:00 +03:00
committed by igorpecovnik
parent 78700cf139
commit 9b68c4e42a
5 changed files with 35 additions and 3 deletions

View File

@@ -34,10 +34,12 @@ function create_image_from_sdcard_rootfs() {
declare calculated_image_version="undetermined"
calculate_image_version
declare -r -g version="${calculated_image_version}" # global readonly from here
declare rsync_ea=" -X "
# nilfs2 fs does not have extended attributes support, and have to be ignored on copy
if [[ $ROOTFS_TYPE == nilfs2 ]]; then rsync_ea=""; fi
if [[ $ROOTFS_TYPE != nfs ]]; then
display_alert "Copying files via rsync to" "/ (MOUNT root)"
run_host_command_logged rsync -aHWXh \
run_host_command_logged rsync -aHWh $rsync_ea \
--exclude="/boot" \
--exclude="/dev/*" \
--exclude="/proc/*" \