23. November 2024, 03:29
Anschließend das Image noch bootbar machen:# grubgrub> device (fd0) /tmp/testimggrub> root (fd0)grub> setup (fd0)grub> quit
echo -e "device (fd0) /tmp/testimg\nroot (fd0)\nsetup (fd0)\nquit" | grub
grub --batch <<EOFdevice (fd0)...EOF
echo "device (fd0) os.img" | grubgrub --batch <<EOFdevice (fd0) os.imgEOF
grub> device (fd0) os.img/bin/sh: Syntax error: word unexpected (expecting ")")make: *** [grub] Error 2