You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
437 B
24 lines
437 B
10 years ago
|
#!/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
|
||
|
|