linuxkit/tools/mkimage-iso/make-iso
Rolf Neugebauer 594ce1251d tools: Add a mkimage variant to build a non-bootable ISO.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-07-25 11:25:59 +01:00

19 lines
403 B
Bash
Executable File

#!/bin/sh
set -e
mkdir -p /tmp/iso
cd /tmp/iso
# input is a tarball of filesystem on stdin
# output is an iso on stdout
# extract. BSD tar auto recognises compression, unlike GNU tar
# only if stdin is a tty, if so need files volume mounted...
[ -t 0 ] || bsdtar xzf -
genisoimage -o ../linuxkit.iso -l -J -R \
-joliet-long -input-charset utf8 \
-V LinuxKit .
cat ../linuxkit.iso