This commit is contained in:
jalr 2018-02-11 16:01:03 +01:00
commit e9930978f0
4 changed files with 20 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
initrd.gz
vmlinuz

9
Dockerfile Normal file
View 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
View 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
View 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