Do not use privileged flag for copy kernel/initrd/module
This commit is contained in:
parent
d8b28b2c6a
commit
e3692b9df1
@ -1,7 +1,7 @@
|
||||
#!/bin/sh -eux
|
||||
docker build -t gen-ubuntu1804-image .
|
||||
RUN="docker run --privileged -v $(pwd):/shared -t gen-ubuntu1804-image"
|
||||
$RUN # generate image
|
||||
$RUN sh -c 'cp /vmlinuz /shared/ubuntu1804.vmlinuz'
|
||||
docker run --privileged -v $(pwd):/shared -t gen-ubuntu1804-image
|
||||
RUN="docker run -v $(pwd):/shared -t gen-ubuntu1804-image"
|
||||
$RUN sh -c 'chmod 644 /vmlinuz && cp /vmlinuz /shared/ubuntu1804.vmlinuz'
|
||||
$RUN sh -c 'cp /initrd.img /shared/ubuntu1804.initrd'
|
||||
$RUN sh -c 'cp $(find /lib/modules -name test_static_key_base.ko) /shared/ubuntu1804.ko'
|
||||
|
Loading…
Reference in New Issue
Block a user