Persistent configuration settings [motd + grub splash]
Marius Gedminas
marius at pov.lt
Thu Jul 5 18:59:12 UTC 2007
On Thu, Jul 05, 2007 at 09:44:21AM -0400, fletcher johnson wrote:
> Hello, I have tried editing both /etc/motd and /boot/grub/menu.lst both to
> no avail.
You managed to pick two files that are automatically regenerated by
system scripts :-)
> When I insert my custom motd when I next reboot my custom motd is
> replaced with the default ubuntu motd.
It's done by one of the init scripts that prints the current kernel
version and adds the contents of /etc/motd.tail to it. Just modify
/etc/motd.tail (or edit the relevant init script, if you feel you know
what you're doing).
> Also I've tried to disable the
> default splash screen on startup by changing the options for my kernel
> 'splash' to 'nosplash', but whenever i restart mysteriously the file has
> reverted back to its default of 'splash'.
There's a comment somewhere near the top that explains how menu.lst is
maintained. It's a small comment in a large file, so people often do
not notice it.
Edit the comment that says kopt=... and change 'splash' to 'nosplash'
there. Do not remove the comment character. Run the update-grub
script as root (this is done automatically whenever you upgrade the
kernel).
That script will read the kopt comment (and a few others), remove the
list of kernels between the two 'AUTOMAGIC KERNELS LIST' comments and
generate a new list that contains all the kernels you've installed, with
the options taken from that kopt comment line.
> (Yes I have saved both files
> successfully as root so we can save a few emails that way :)
Cheers!
Marius Gedminas
--
Read what I mean, not what I write.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070705/4a4e88d9/attachment.sig>
More information about the ubuntu-users
mailing list