balena-raspberrypi
balena-raspberrypi copied to clipboard
hostapp-update-hooks: Handle modules in old hostOS for pieeprom
If kernel is updated, modules cannot be loaded from the hook that's running in a container with the new hostOS, to which we are updating.
Therefore, we switch module handling to old hostOS so modules version match current running kernel.
Also, we need to ensure possible failures in updating EEPROM do not trigger any failure in HUP.
Addresses https://github.com/balena-os/balena-raspberrypi/issues/384
@ZubairLK I was revisiting this and was wondering what's the current status with the hooks.. Will the OS continue to support before/after hooks being run from the old hostOS? Or should we not rely on them and look for possible alternatives?
@acostach I don't think this is needed after https://github.com/balena-os/balena-raspberrypi/pull/1118/, is it?
@alexgg yes, this is no longer necessary. Closing.