forked from ungleich-public/cdist
add v2 ideas
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
parent
bb9d889d15
commit
4809662026
2 changed files with 58 additions and 0 deletions
29
hacking/v2-initramfs-from-os/add_kernel_isolinux.sh
Executable file
29
hacking/v2-initramfs-from-os/add_kernel_isolinux.sh
Executable file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue