Skip to content
Snippets Groups Projects
Commit 5c064002 authored by David Bauer's avatar David Bauer
Browse files

gluon-setup-mode: execute bootcount initscript in setup-mode


Currently Gluon does not execute the bootcount scripts when booting in
setup-mode.

While this is usually not issue after the first installation ahs
completed, it might lead to devices with an A/B partition layout to
switch active partitions after the device has been rebooted multiple
times before the initial configuration.

Fix this by executing the bootcount reset initscript.

Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
parent a596d37b
No related branches found
No related tags found
No related merge requests found
#!/bin/sh /etc/rc.common
# shellcheck disable=SC1091
if [ -x /etc/init.d/bootcount ] && /etc/init.d/bootcount enabled; then
. /etc/init.d/bootcount
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment