1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 15:40:47 +00:00

Initial commit

This commit is contained in:
Darren Shepherd
2021-06-05 17:31:50 -07:00
commit 2b90d55b0d
30 changed files with 1201 additions and 0 deletions

15
files/usr/sbin/suc-upgrade Executable file
View File

@@ -0,0 +1,15 @@
#!/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