22. November 2024, 23:10
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