mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
Extract Docker RUN commands into shell scripts for better maintainability
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
10
scripts/docker-image-download-kernel.sh
Executable file
10
scripts/docker-image-download-kernel.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Download a minimal Linux kernel for UEFI image
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p /kernel
|
||||
apt-get update
|
||||
apt-get download linux-image-generic
|
||||
dpkg -x linux-image-*.deb /kernel
|
||||
rm -rf /var/lib/apt/lists/* linux-image-*.deb
|
||||
Reference in New Issue
Block a user