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
420 B
24 lines
420 B
#!/bin/sh
|
|
|
|
# FIXME: distro specific kernel location
|
|
|
|
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/linux"
|
|
cp /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/linux
|
|
initrd /boot/initramfs
|
|
eof
|
|
|