mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-06 17:47:37 +00:00
Simpler to have an image that takes the kernel and initrd as input, rather than building them into the image. The rest need converting. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
20 lines
497 B
Bash
Executable File
20 lines
497 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# input is a tarball of vmlinuz64 and initrd.img on stdin
|
|
# output is an iso on stdout
|
|
|
|
cp /usr/share/syslinux/isolinux.bin ./isolinux/
|
|
cp /usr/share/syslinux/ldlinux.c32 ./isolinux/
|
|
|
|
tar xf -
|
|
|
|
genisoimage -o ../mobylinux-bios.iso -l -J -R \
|
|
-c isolinux/boot.cat \
|
|
-b isolinux/isolinux.bin \
|
|
-no-emul-boot -boot-load-size 4 -boot-info-table \
|
|
-V MobyLinux .
|
|
|
|
isohybrid ../mobylinux-bios.iso
|
|
|
|
cat ../mobylinux-bios.iso
|