mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
generate compressed initrd, use it for xhyverun
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
41c6089775
commit
f25230a151
1
alpine/.gitignore
vendored
1
alpine/.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
*.img
|
||||
*.img.gz
|
||||
mobylinux.iso
|
||||
Dockerfile.armhf
|
||||
etc/inittab
|
||||
|
@ -1,4 +1,4 @@
|
||||
all: initrd.img
|
||||
all: initrd.img.gz
|
||||
|
||||
ETCFILES=etc/issue etc/motd etc/network/interfaces
|
||||
ETCFILES+=etc/securetty
|
||||
@ -11,6 +11,9 @@ initrd.img: Dockerfile mkinitrd.sh repositories $(ETCFILES)
|
||||
docker-compose build moby
|
||||
docker-compose run --rm -T moby /bin/mkinitrd.sh
|
||||
|
||||
initrd.img.gz: initrd.img
|
||||
cat initrd.img | gzip -9 > initrd.img.gz
|
||||
|
||||
mobylinux.iso: initrd.img Dockerfile.iso isolinux.cfg
|
||||
docker-compose build iso
|
||||
docker-compose run --rm -T iso cp /tmp/output.iso /mnt/mobylinux.iso
|
||||
@ -34,7 +37,7 @@ initrd-arm.img: Dockerfile.armhf
|
||||
docker-compose run --rm -T arm /bin/mkinitrd.sh > $@
|
||||
|
||||
clean:
|
||||
rm -f initrd.img initrd-arm.img Dockerfile.armhf etc/inittab
|
||||
rm -f initrd.img initrd.img.gz initrd-arm.img Dockerfile.armhf etc/inittab
|
||||
rm -f mobylinux.iso
|
||||
$(MAKE) -C packages clean
|
||||
$(MAKE) -C kernel clean
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
KERNEL="../alpine/kernel/vmlinuz64"
|
||||
INITRD="../alpine/initrd.img"
|
||||
INITRD="../alpine/initrd.img.gz"
|
||||
CMDLINE="earlyprintk=serial console=ttyS0"
|
||||
|
||||
MEM="-m 1G"
|
||||
|
Loading…
Reference in New Issue
Block a user