[Trac-bugs] [PC-BSD Trac] #763: Problem setting default boot environment more than once.

PC-BSD trac at pcbsd.org
Thu Dec 26 18:48:23 PST 2013

#763: Problem setting default boot environment more than once.
  Reporter:  malco_2001            |      Owner:  Kris
      Type:  System Defect         |     Status:  reopened
  Priority:  minor                 |  Milestone:
 Component:  System Configuration  |    Version:  9.2-RELEASE
Resolution:                        |   Keywords:
Changes (by malco_2001):

 * status:  closed => reopened
 * resolution:  worksforme =>


 Replying to [comment:2 kris]:
 > How are you setting it to the default? Via the 'beadm' command, or via
 the control-panel GUI?
 > The beadm command doesn't change it properly, you need to set the
 GRUB_DEFAULT=<num> entry in /usr/local/etc/default/grub, then run "grub-
 mkconfig -o /boot/grub/grub.cfg"
 > If you are running via the GUI, it should handle this automatically. If
 not, reopen the bug and we can take a look.

 This still occurs on a fresh install on every system I try it on.  I've
 had a little more time to track it down so what's happening is this.  At
 first I will have just one environment default.  I will then create a new
 environment called virtualbox.  Then I will select that environment and
 boot into it.  After that if I try to create a new environment, or set
 default as the default it doesn't work and it won't even show up in grub.
 This is without using beadm at this point at all.

 One thing I see at this stage is that beadm list shows default mounted
 under /mnt.  I see in console that it is trying to update grub in
 tank/ROOT/default and it can't mount tank0/root/default to mount as it is
 already mounted.  So it just gives up doesn’t update grub for some reason
 if it is mounted tank/ROOT/default is mounted as /mnt.

 So what I've been doing to get around this is using beadm activate
 virtualbox rebooting and then beadm activate default and rebooting again.
 Then default will just show a mountpoint of / instead.  Then pc-bootconfig
 can mount tank0/ROOT/default to /mnt when it needs to so that it can
 update grub, etc no problems.

Ticket URL: <http://trac.pcbsd.org/ticket/763#comment:3>
PC-BSD <http://trac.pcbsd.org>
PC-BSD Project Management

More information about the Trac-bugs mailing list