mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
Create all directories for kernel
Non AUFS kernels do not create `sbin/` and `/usr` directories as they do not provide the AUFS directories. Just create empty directories to avoid a warning. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
3615921fc2
commit
75078a67bb
@ -4,7 +4,7 @@ all: x86_64/vmlinuz64
|
||||
|
||||
ifdef AUFS
|
||||
x86_64/vmlinuz64: Dockerfile.aufs kernel_config kernel_config.debug kernel_config.aufs
|
||||
mkdir -p x86_64 etc
|
||||
mkdir -p x86_64 etc lib usr sbin
|
||||
BUILD=$$( docker build -f Dockerfile.aufs --build-arg DEBUG=$(DEBUG) -q . ) && [ -n "$$BUILD" ] && echo "Built $$BUILD" && \
|
||||
docker run --rm --net=none --log-driver=none $$BUILD cat /kernel-modules.tar | tar xf - && \
|
||||
docker run --rm --net=none --log-driver=none $$BUILD cat /aufs-utils.tar | tar xf - && \
|
||||
@ -15,7 +15,7 @@ x86_64/vmlinuz64: Dockerfile.aufs kernel_config kernel_config.debug kernel_confi
|
||||
cp -a patches-aufs etc/kernel-patches
|
||||
else
|
||||
x86_64/vmlinuz64: Dockerfile kernel_config kernel_config.debug
|
||||
mkdir -p x86_64 etc
|
||||
mkdir -p x86_64 etc lib usr sbin
|
||||
BUILD=$$( docker build --build-arg DEBUG=$(DEBUG) -q . ) && [ -n "$$BUILD" ] && echo "Built $$BUILD" && \
|
||||
docker run --rm --net=none --log-driver=none $$BUILD cat /kernel-modules.tar | tar xf - && \
|
||||
docker run --rm --net=none --log-driver=none $$BUILD cat /kernel-source-info > etc/kernel-source-info && \
|
||||
|
Loading…
Reference in New Issue
Block a user