How can I write an OpenSuse script that will change my boot menu.lst file and add "nomodeset" automatically both to failsafe and normal boot option? (This script is for suseStudio I'm going to write it under the "Run script whenever the appliance boots" for the first boot).
|
|
Look for the For grub2, the file to edit is For a one-off change, you can make temporary edits to the options directly in grub, by entering the "edit commandline" mode. |
|||||||
|
|
Read the release notes Basically, you can use your favorite text editor to edit /boot/grub/menu.lst as root. Add nomodeset to the kernel boot line. Or set the NO_KMS_IN_INITRD sysconfig variable to yes via YAST. |
|||
|
|
If you know what will definitely be surrounding it on the line, you can use sed or Perl with something like
The $ assumes that it's right at the end of the line. The preceding text would have to be unique to the lines you need to hit. |
|||
|
|