mirror of
https://github.com/kairos-io/immucore.git
synced 2025-08-10 18:42:24 +00:00
Set sentinel file during generator
Some cloud init scripts may need it ASAP Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
parent
7416a49e21
commit
23b4b8f69f
@ -30,3 +30,14 @@ cos_img=$(getarg cos-img/filename=)
|
|||||||
} > "$GENERATOR_DIR"/sysroot.mount
|
} > "$GENERATOR_DIR"/sysroot.mount
|
||||||
|
|
||||||
## END GENERATE SYSROOT
|
## END GENERATE SYSROOT
|
||||||
|
|
||||||
|
# set sentinel file for boot mode
|
||||||
|
mkdir -p /run/cos
|
||||||
|
case "${cos_img}" in
|
||||||
|
*recovery*)
|
||||||
|
echo -n 1 > /run/cos/recovery_mode ;;
|
||||||
|
*active*)
|
||||||
|
echo -n 1 > /run/cos/active_mode ;;
|
||||||
|
*passive*)
|
||||||
|
echo -n 1 > /run/cos/passive_mode ;;
|
||||||
|
esac
|
Loading…
Reference in New Issue
Block a user