Skip to content

Commit

Permalink
8987 bootadm: add bootfile fallback to unix
Browse files Browse the repository at this point in the history
Reviewed by: Yuri Pankov <yuripv@icloud.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.net>
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome authored and Dan McDonald committed Jan 25, 2018
1 parent 9aa2d72 commit 141fdc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/src/cmd/boot/bootadm/bootadm_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,15 +1151,15 @@ update_temp(struct menu_lst *menu, char *dummy, char *opt)
fp = fopen(path, "w");
if (fp == NULL)
return (BAM_ERROR);
(void) fprintf(fp, "bootfile=\"%s\"\n", opt);
(void) fprintf(fp, "bootfile=\"%s;unix\"\n", opt);
(void) fclose(fp);
return (BAM_SUCCESS);
}
*o++ = '\0';
fp = fopen(path, "w");
if (fp == NULL)
return (BAM_ERROR);
(void) fprintf(fp, "bootfile=\"%s\"\n", opt);
(void) fprintf(fp, "bootfile=\"%s;unix\"\n", opt);

if (env != NULL) {
env = getenv("boot-args");
Expand Down

0 comments on commit 141fdc8

Please sign in to comment.