mirror of
https://github.com/rancher/os.git
synced 2025-09-17 15:40:47 +00:00
Initial commit
This commit is contained in:
15
files/usr/sbin/suc-upgrade
Executable file
15
files/usr/sbin/suc-upgrade
Executable 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
|
Reference in New Issue
Block a user