Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>remotes/origin/4.0-pre-not-stable
parent
59d81ddd4b
commit
a1f003bd9c
@ -0,0 +1,2 @@ |
||||
iso/ |
||||
*.iso |
@ -0,0 +1,29 @@ |
||||
#!/bin/sh |
||||
|
||||
# FIXME: Write cdist type / explorer that finds |
||||
# package for a file, distro independent |
||||
|
||||
if [ "$#" -ne 1 ]; then |
||||
echo "$0 dir-out" |
||||
exit 1 |
||||
fi |
||||
|
||||
dir=$1; shift |
||||
boot=$dir/boot |
||||
|
||||
mkdir -p "$boot" |
||||
cp /boot/vmlinuz-linux \ |
||||
/boot/initramfs-linux-fallback.img \ |
||||
/usr/lib/syslinux/bios/isolinux.bin \ |
||||
"$boot" |
||||
|
||||
cp /usr/lib/syslinux/bios/ldlinux.c32 \ |
||||
"$dir" |
||||
|
||||
cat > "$dir/isolinux.cfg" << eof |
||||
default preos |
||||
label preos |
||||
title cdist PreOS |
||||
linux /boot/vmlinuz-linux |
||||
initrd /boot/initramfs-linux-fallback.img |
||||
eof |
@ -0,0 +1,10 @@ |
||||
#!/bin/sh |
||||
|
||||
set -e |
||||
|
||||
dir=./iso |
||||
iso=preos.iso |
||||
|
||||
./filelist_from_package.sh | ./filelist_to_dir.sh "$dir" |
||||
./add_kernel_isolinux.sh "$dir" |
||||
./create_iso.sh "$dir" "$iso" |
Loading…
Reference in new issue