summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-01-24 16:20:33 +0200
committerDan McDonald <danmcd@joyent.com>2018-01-25 10:09:50 -0500
commit141fdc8db8933e5c2d4fe6a0f5ee25c59f0a0231 (patch)
tree5a2ba231abd9a26f0a25a123eae964b5548125ca
parent9aa2d72c0b7ffd836b0f633a523c698cfa854256 (diff)
downloadillumos-joyent-141fdc8db8933e5c2d4fe6a0f5ee25c59f0a0231.tar.gz
8987 bootadm: add bootfile fallback to unix
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>
-rw-r--r--usr/src/cmd/boot/bootadm/bootadm_loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/boot/bootadm/bootadm_loader.c b/usr/src/cmd/boot/bootadm/bootadm_loader.c
index 29db098006..56b509b9ed 100644
--- a/usr/src/cmd/boot/bootadm/bootadm_loader.c
+++ b/usr/src/cmd/boot/bootadm/bootadm_loader.c
@@ -1151,7 +1151,7 @@ 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);
}
@@ -1159,7 +1159,7 @@ 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);
if (env != NULL) {
env = getenv("boot-args");