Mercurial > illumos > illumos-gate
changeset 12985:d476be14f46f
6949698 bootadm needs to be updated to include Oracle in the grub title
author | George Asaad <George.Asaad@Sun.COM> |
---|---|
date | Fri, 30 Jul 2010 15:51:47 -0700 |
parents | b007dc0c0ff3 |
children | caf415d9aa53 |
files | usr/src/cmd/boot/bootadm/bootadm.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/boot/bootadm/bootadm.c Fri Jul 30 11:16:43 2010 -0700 +++ b/usr/src/cmd/boot/bootadm/bootadm.c Fri Jul 30 15:51:47 2010 -0700 @@ -7084,15 +7084,17 @@ goto out; } - while (s_fgets(title, sizeof (title), fp) != NULL) { - cp = strstr(title, "Solaris"); - if (cp) - break; - } + /* grab first line of /etc/release */ + cp = s_fgets(title, sizeof (title), fp); + if (cp) { + while (isspace(*cp)) /* remove leading spaces */ + cp++; + } + (void) fclose(fp); out: - cp = cp ? cp : "Solaris"; + cp = cp ? cp : "Oracle Solaris"; BAM_DPRINTF((D_GET_TITLE, fcn, cp));