Commit 9b895b29 by phenigma

Closes #2789 - make Diskless_BuildDefaultImage.sh use the newest kernel.

1 parent c4a89121
Pipeline #675 passed
in 36 seconds
......@@ -3,7 +3,7 @@
## Put a kernel image in there
mkdir -p /tftpboot/default
cd /lib/modules
KERNEL=`find * -type d |head -1`
KERNEL=$(find * -maxdepth 0 -type d |sort -r |head -1)
cp /boot/vmlinuz-$KERNEL /tftpboot/default/vmlinuz
chmod +r /tftpboot/default/vmlinuz
mkinitramfs -d /etc/initramfs-tools-interactor/ -o /tftpboot/default/initrd $KERNEL
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!