es tut
This commit is contained in:
commit
e9930978f0
4 changed files with 20 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
initrd.gz
|
||||||
|
vmlinuz
|
||||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM debian:stretch
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get -y install \
|
||||||
|
initramfs-tools \
|
||||||
|
linux-image-amd64
|
||||||
|
|
||||||
|
RUN echo 'RESUME=none' > /etc/initramfs-tools/conf.d/resume \
|
||||||
|
&& mkinitramfs -o /tmp/initrd.gz
|
||||||
3
build.sh
Executable file
3
build.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
docker build -t initramfs:debian .
|
||||||
|
docker run --rm -v "$PWD:/artifacts" initramfs:debian sh -c 'cp /boot/vmlinuz-* /artifacts/vmlinuz && cp /tmp/initrd.gz /artifacts'
|
||||||
6
qemu.sh
Normal file
6
qemu.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
qemu-system-x86_64 \
|
||||||
|
-kernel vmlinuz \
|
||||||
|
-initrd initrd.gz \
|
||||||
|
-drive format=raw,if=scsi,file=../qemutest/debian.img \
|
||||||
|
-append root=/dev/sda1 \
|
||||||
|
-m 1G
|
||||||
Loading…
Add table
Add a link
Reference in a new issue