1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Merge pull request #1188 from joshwget/upgrade-from-persistent-consoles

Fix upgrades from persistent consoles
This commit is contained in:
Darren Shepherd
2016-08-28 12:03:40 -07:00
committed by GitHub

View File

@@ -26,6 +26,11 @@ ln -s ros ${INITRD_DIR}/usr/bin/docker-runc
ln -s ../../../../usr/bin/ros ${INITRD_DIR}/usr/var/lib/cni/bin/bridge
ln -s ../../../../usr/bin/ros ${INITRD_DIR}/usr/var/lib/cni/bin/host-local
# Support upgrades from old persistent consoles that bind mount these
touch ${INITRD_DIR}/usr/bin/docker-containerd
touch ${INITRD_DIR}/usr/bin/docker-containerd-shim
touch ${INITRD_DIR}/usr/bin/docker
if [ -e ${DOWNLOADS}/kernel.tar.gz ]; then
mkdir -p ${BUILD}/kernel
tar xf ${DOWNLOADS}/kernel.tar.gz -C ${BUILD}/kernel