mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 21:57:54 +00:00
fix: Always reboot when applying boot config
Change-type: patch Closes: #1037 Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
430e58c932
commit
e91fa6e7b3
@ -489,7 +489,13 @@ export class DeviceConfig {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_.isEmpty(steps) && this.rebootRequired) {
|
// Check if there is either no steps, or they are all
|
||||||
|
// noops, and we need to reboot. We want to do this
|
||||||
|
// because in a preloaded setting with no internet
|
||||||
|
// connection, the device will try to start containers
|
||||||
|
// before any boot config has been applied, which can
|
||||||
|
// cause problems
|
||||||
|
if (_.every(steps, { action: 'noop' }) && this.rebootRequired) {
|
||||||
steps.push({
|
steps.push({
|
||||||
action: 'reboot',
|
action: 'reboot',
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user