Patch for (kernel) splashimages
Olaf Mandel
olaf@mandel.name
Fri, 22 Oct 2004 22:09:17 +0200 (CEST)
--=_0333f33a766bee3743e59e74ae9e0fe0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Hi,
the attached patch (against 0.95+cvs20040624-10) does three things to update-grub:
- It adds these lines to the menu.lst template:
### BEGIN AUTOMAGIC BOOTSPLASH OPTIONS
### END AUTOMAGIC BOOTSPLASH OPTIONS
- It adds the Default Option "sopt": Comparable to kopt, it contains kernel options. They are to be appended to the kernel-line:
kernel <image> <kopt> <sopt>
- It fixes a small bug in searching splash.xpm.gz: the path was hardcoded
The idea behind this is to enable the bootsplash package to easily configure grub, when the options for bootsplash are changed. This is easier, if bootsplash does not have to edit "kopt", but can use a separate "sopt". The "automatic bootsplash options" are thought for snippets setting the text-color.
Background: Jaap Haitsma, who made http://debblue.debian.net/ started combining grub-splash, kernel bootsplash, gdm-theme and desktop background to a single, consistent theme. I like this idea very much, but at the moment, it is too difficult to set up all parts separately. So here is to putting the right hooks into grub.
This patch should not cause any problems or overhead for users that do not have / want kernel splash images. The default is to not add anything to the kernel-options.
Cheers,
Olaf Mandel
--=_0333f33a766bee3743e59e74ae9e0fe0
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="patch.grub"
LS0tIC9zYmluL3VwZGF0ZS1ncnViCTIwMDQtMTAtMTQgMDM6Mjk6NTMuMDAwMDAwMDAwICswMjAw
CisrKyB1cGRhdGUtZ3J1YgkyMDA0LTEwLTIyIDIxOjEzOjMwLjAwMDAwMDAwMCArMDIwMApAQCAt
MjMwLDYgKzIzMCwxMCBAQAogIyBEZWZhdWx0IGtlcm5lbCBvcHRpb25zLCBvdmVyaWRkZW4gYnkg
dGhlIGtvcHQgc3RhdGVtZW50IGluIHRoZSBtZW51ZmlsZS4KIGtvcHQ9InJvb3Q9JHJvb3RfZGV2
aWNlIHJvIgogCisjIERlZmF1bHQgYm9vdHNwbGFzaC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