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

PC-BSD trac at pcbsd.org
Sat Feb 1 13:22:51 PST 2014


#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:
-----------------------------------+-------------------------

Comment (by malco_2001):

 Okay I think I may have found a solution here.  I'm not exactly sure if it
 is intended to work this way but here it goes.  If I create a new boot
 environment called "nvidia" on a fresh install.  Then I open a terminal
 and type beadm activate nvidia" then reboot it works.  I can then create a
 new environment called vaimge, do the beadm activate vimage in a terminal
 and it boots into the 2nd new environment called vimage just fine.

 So looking over your code for boot environments I see that beadm activate
 doesn't run when the activate command is clicked it only updates the grub
 entry.  The problem is after I create the first boot environment the
 second one can't update the grub entry.  Unless I run beadm activate name
 of second be.  So wouldn't just adding the code you have earlier in
 mainUI.cpp for pc-bootconfig to run beadm activate +name when actvating
 fix the problem?

 void mainUI::on_tool_BEactivate_clicked(){
   int index = getSelectedBE();
   if(index != -1){
     //Save the new defaults
     G_defaultBE = index;
     bool ok = saveGRUBdefaults(G_themeFile, G_fontFile, G_timer,
 G_showMenu, G_defaultBE);
     //Update GRUB config
     if(ok){ on_action_rebuildGRUBmenu_triggered(); }
     //Update GUI
     updateBEList();
   }
 }

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


More information about the Trac-bugs mailing list