mirror of
https://github.com/rancher/os.git
synced 2025-08-02 07:24:28 +00:00
Add a way to over-ride the downloaded kernel with a local file
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
ba2c65ec19
commit
f6576815c9
@ -31,6 +31,12 @@ touch ${INITRD_DIR}/usr/bin/docker-containerd
|
||||
touch ${INITRD_DIR}/usr/bin/docker-containerd-shim
|
||||
touch ${INITRD_DIR}/usr/bin/docker
|
||||
|
||||
# Override using a local kernel build
|
||||
if [ -e ${DAPPER_SOURCE}/assets/kernel.tar.gz ]; then
|
||||
echo "copying ${DAPPER_SOURCE}/assets/kernel.tar.gz ${DOWNLOADS}/kernel.tar.gz"
|
||||
cp ${DAPPER_SOURCE}/assets/kernel.tar.gz ${DOWNLOADS}/kernel.tar.gz
|
||||
fi
|
||||
|
||||
if [ -e ${DOWNLOADS}/kernel.tar.gz ]; then
|
||||
mkdir -p ${BUILD}/kernel
|
||||
tar xf ${DOWNLOADS}/kernel.tar.gz -C ${BUILD}/kernel
|
||||
|
Loading…
Reference in New Issue
Block a user