From 4c3120eece022c21f7bcc6ef48f73260bf10a43e Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 24 Jan 2018 16:20:33 +0200 Subject: [PATCH] 8987 bootadm: add bootfile fallback to unix --- usr/src/cmd/boot/bootadm/bootadm_loader.c | 4 ++-- 1 file 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 3e424f98f9..49888c1c76 100644 --- a/usr/src/cmd/boot/bootadm/bootadm_loader.c +++ b/usr/src/cmd/boot/bootadm/bootadm_loader.c @@ -1139,7 +1139,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); } @@ -1147,7 +1147,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"); -- 2.11.4.GIT