meson-s4t7: disable chrony-wait.service as it makes us hang for 4 minutes on boot

This commit is contained in:
Gunjan Gupta 2024-02-08 05:21:01 +05:30 committed by Igor
parent 95902429d1
commit e3e25467c3

View File

@ -197,3 +197,11 @@ function post_family_tweaks_bsp__add_postrm_hook() {
display_alert "$BOARD" "Adding postrm hook to restore /etc/initramfs-tools/modules file" "info"
postrm_functions+=(meson_s4t7_board_side_bsp_cli_postrm)
}
function post_family_tweaks__disable_chrony_wait_service() {
# if chrony-wait service is there, disable the same
if [[ -f "${SDCARD}"/lib/systemd/system/chrony-wait.service ]]; then
chroot_sdcard systemctl disable chrony-wait.service || true
chroot_sdcard systemctl mask chrony-wait.service
fi
}