armbian-next: replace bare sync invocations by introducing wait_for_disk_sync(); sync early at start of build

- wait 10s for sync call; otherwise warn user to be patient
- wait_for_sync "reason for sync" everywhere
- add @TODO for /run/user/0 etc and XDG_RUNTIME_DIR in chroot
This commit is contained in:
Ricardo Pardini
2023-01-20 01:44:46 +01:00
parent 4d43c05f7b
commit 72c61f2f68
9 changed files with 52 additions and 22 deletions

View File

@@ -21,9 +21,9 @@ function do_with_ccache_statistics() {
display_alert "ccache dir size before" "${ccache_dir_size_before_human}" "ccache"
# Show the ccache configuration
wait_for_disk_sync "before ccache config"
display_alert "ccache configuration" "ccache" "ccache"
run_host_command_logged ccache --show-config "&&" sync
sync
fi
display_alert "Running ccache'd build..." "ccache" "ccache"