Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Oct 2015 18:47:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 203777] bsdinstall(8) zfsboot script unusable for unattended installs, unless "internal" variable nonInteractive is set
Message-ID:  <bug-203777-8-168NpSi7IU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-203777-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203777-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203777

--- Comment #1 from fre.fbsdpr@expertmaker.com ---
(In reply to fre.fbsdpr from comment #0)

Ah, upon looking more at the bsdinstall(8) scripts (/usr/libexec/bsdinstall/*)
and subroutines (/usr/share/bsdconfig/*) I found that the "input" variable is
called VAR_NONINTERACTIVE, not NONINTERACTIVE, as mentioned by the mail I
previously referred to.

Still, if not set, this should be set in /usr/libexec/bsdinstall/script,
perhaps something like,

  if [ "$ZFSBOOT_DISKS" ]; then
          case "$VAR_NONINTERACTIVE" in
                  0|[Nn][Oo]|[Oo][Ff][Ff]|[Ff][Aa][Ll][Ss][Ee]) : do nothing ;;
                  *) export VAR_NONINTERACTIVE="YES"
          esac
          bsdinstall zfsboot
  else
          bsdinstall scriptedpart "$PARTITIONS"
  fi

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203777-8-168NpSi7IU>