watchdog reboot when cgroup is in unified mode while docker containers startup
I have a rpi2 with several docker containers automaticaly started at boot. I saw the problem after migrating from alpine 3.18 to alpine 3.19. I downgraded to 3.18 (thanks to btrfs snapshots), and then reproduced the same problem on 3.18:
When cgroup is configured on unified mode (v2) and watchdog is activated (bcm2835-wdt), the board is rebooted while docker containers are starting. If cgroup is on hybrid mode, or if watchdog is not activated or if docker containers are not started, no reboot.
I have kernel 6.1.73-v7+ compiled from sources from raspberry github. When docker containers are started, the uptime go to more than 5.
I tried those in /etc/conf.d/watchdog:
export SSD_IONICELEVEL=1
export SSD_NICELEVEL=-20
rc_cgroup_settings="
cpu.weight 300
"
But it does not seem to have any effect.