1
0
mirror of https://github.com/rancher/os.git synced 2025-08-22 08:35:38 +00:00

Fix upgrades from persistent consoles

This commit is contained in:
Josh Curl 2016-08-25 16:04:31 -07:00
parent 22ab564dac
commit bffe4e5d3e
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677

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