mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
do not pull os-images by default if they exist
also, cleanup os-initrdbase container on exit in ./scripts/copy-images (as trap can apparently only run one command)
This commit is contained in:
@@ -20,6 +20,7 @@ docker cp ${CONTAINER_INITRDBASE}:/initrd ${BUILD} # copies files to ${BUILD}/in
|
||||
|
||||
CONTAINER_KERNEL=$(docker create rancher/os-kernel:${VERSION})
|
||||
cleanup_kernel() {
|
||||
cleanup_initrdbase
|
||||
docker rm -v ${CONTAINER_KERNEL}
|
||||
}
|
||||
trap cleanup_kernel EXIT
|
||||
|
Reference in New Issue
Block a user