forked from ungleich-public/cdist
can generate initramfs from busybox
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
parent
f51a444012
commit
7ba6c0a44a
10 changed files with 119 additions and 29 deletions
24
hacking/v3-busybox/add_kernel_isolinux.sh
Executable file
24
hacking/v3-busybox/add_kernel_isolinux.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue