Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to run a setpci command that enables reboot on power failure from inside grub2, just in order to be sure that this is executed as soon as posible.

The problem is that while this works without any problems when run from rc.local, the same command put on grub does block grub from loading, and the computer remains stuck with the dark violet background of grub.

Here is how I put the setpci on grub, I added /etc/grub.d/99_apple.sh file with this content:

#!/bin/sh
echo "setpci -s 00:03.0 0x7b.b=0x19"

When running update-grub this will add this to the end of /boot/grub/grub.cfg:

### BEGIN /etc/grub.d/99_apple ###
setpci -s 00:03.0 0x7b.b=0x19
### END /etc/grub.d/99_apple ###

... which seems to break grub for some reason.

That's on Ubuntu 13.10 if it matters...

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.