mirror of
https://github.com/rancher/os.git
synced 2025-07-19 09:26:27 +00:00
16 lines
335 B
Bash
Executable File
16 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e
|
|
|
|
if [ "$FORCE" != "true" ]; then
|
|
if diff /etc/os-release /host/etc/os-release >/dev/null; then
|
|
echo Update to date with
|
|
cat /etc/os-release
|
|
exit 0
|
|
fi
|
|
fi
|
|
mount --rbind /host/dev /dev
|
|
mount --rbind /host/run /run
|
|
bash -x cos-upgrade --directory /
|
|
nsenter -i -m -t 1 -- reboot
|
|
exit 1
|