mirror of
https://github.com/kairos-io/immucore.git
synced 2025-08-01 22:47:41 +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
@ -29,4 +29,15 @@ cos_img=$(getarg cos-img/filename=)
|
||||
echo "Options=ro,suid,dev,exec,auto,nouser,async"
|
||||
} > "$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