cdist-backup/hacking/v2-initramfs-from-os/copy_files_for_iso.sh
Nico Schottelius bb9d889d15 rename & cleanup
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
2015-05-19 11:52:14 +02:00

23 lines
437 B
Bash
Executable file

#!/bin/sh
set -ex
testdir=./iso-root-dir
# Create base
rm -rf "$testdir"
mkdir "$testdir"
# Copy binaries
# Copy kernel
mkdir -p "$testdir/boot"
cp /boot/vmlinuz-linux "$testdir/boot/kernel"
cp /boot/initramfs-linux-fallback.img "$testdir/boot/initramfs"
# Create iso
genisoimage -v -V "cdist preos v0.1" \
-cache-inodes -J -l \
-r -no-emul-boot \
-boot-load-size 4 -b isolinux.bin -c boot.cat -o cdist-preos.iso iso