View Single Post
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#260
Originally Posted by MaddogG View Post
@Pali

I could not create "bootmenu.scr" file, so I investigated a bit and I think I found a little bug in u-boot-update-bootmenu script.
In fact, if file "BOOTMENU_CMD.default" is never created, the script will surely fail at lines 269, and file "bootmenu.scr" will never be generated.
I think this happens if you don't set any default entry (you don't create the symlink "bootmenu.item" in /etc/default/).
Maybe you should check if this file exist before line 269:

Code:
if test -f "$BOOTMENU_CMD.default"; then
cat "$BOOTMENU_CMD.default" "$BOOTMENU_CMD" > "$BOOTMENU_CMD.new"
mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"
fi
I included command

Code:
mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"
in the "if" statement because, at line 255, you delete the file "BOOTMENU_CMD.new", so if file "BOOTMENU_CMD.default" doesn't exist, file "BOOTMENU_CMD.new" is not created and this command fails, too.

I hope I explained myself...

What do you think?
do you have free space on rootfs? try to reboot device
 

The Following User Says Thank You to pali For This Useful Post: