Changeset b2dabfa


Ignore:
Timestamp:
10/15/13 12:28:43 (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
59f014c4
Parents:
0843d04d
Message:

Add ability to boot into text-install mode, and add new dialog menu options
to walk through the install wizard / edit / install menus

Location:
overlays/install-overlay
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • overlays/install-overlay/boot/grub/grub.cfg

    r0a15f21 rb2dabfa  
    6969set theme=($root)/boot/grub/themes/pcbsd/theme.txt 
    7070export theme 
    71 set timeout=10 
     71set timeout=15 
    7272 
    7373menuentry "Graphical Install" { 
     
    7878} 
    7979 
    80 menuentry "Run X in VESA mode" { 
     80menuentry "Graphical Install - (Failsafe VESA mode)" { 
    8181  kfreebsd /boot/kernel/kernel 
    8282  kfreebsd_loadenv /boot/device.hints 
     
    8686} 
    8787 
    88 menuentry "Emergency Console" { 
     88menuentry "Text Install / Emergency Console" { 
    8989  kfreebsd /boot/kernel/kernel 
    9090  kfreebsd_loadenv /boot/device.hints 
  • overlays/install-overlay/boot/grub/themes/pcbsd/theme.txt

    rc90346e rb2dabfa  
    2323 
    2424#general settings 
    25 title-text: "PC-BSD Bootloader" 
     25title-text: "PC-BSD / TrueOS Installation" 
    2626title-font: "DejaVu Sans Bold 14" 
    2727title-color: "#000" 
  • overlays/install-overlay/root/PCBSDStart.sh

    rc90346e rb2dabfa  
    11#!/bin/sh 
    2 # Copyright 2007 PC-BSD Software 
     2# Copyright 2013 PC-BSD Software 
    33# http://www.pcbsd.com 
    44# Author: Kris Moore 
  • overlays/install-overlay/root/PCBSDtext.sh

    r1620346 rb2dabfa  
    11#!/bin/sh 
    22# PC-BSD System Install Menu 
    3 # Copyright 2007 PC-BSD Software 
     3# Copyright 2013 PC-BSD Software 
    44# http://www.pcbsd.com 
    55# Author: Kris Moore 
    66########################################################################### 
     7 
     8. /root/functions.sh 
     9 
     10text_install_menu() 
     11{ 
     12 
     13  while : 
     14  do 
     15    if [ -e "/tmp/sys-install.cfg" ] ; then 
     16      dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 20 55 15 wizard "Re-Run install wizard" edit "Edit install script" install "Start installation" back "Return to previous menu" 2>/tmp/answer 
     17    else 
     18      dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 20 55 15 wizard "Run install wizard" back "Return to previous menu" 2>/tmp/answer 
     19    fi 
     20 
     21    ANS="`cat /tmp/answer`" 
     22 
     23    case $ANS in 
     24     wizard) pc-installdialog 
     25             rtn 
     26             ;; 
     27       edit) vi /tmp/sys-install.cfg 
     28             rtn 
     29             ;; 
     30    install) echo "This will begin the installation, continue?" 
     31             echo -e "(y/n)\c" 
     32             read tmp 
     33             if [ "$tmp" = "y" -o "$tmp" = "Y" ] ; then 
     34                pc-sysinstall -c /tmp/sys-install.cfg 
     35                rtn 
     36             fi 
     37             ;; 
     38       back) break ;; 
     39          *) ;; 
     40    esac 
     41  done 
     42} 
    743 
    844DRES="1024x768"  
     
    1248do 
    1349 
    14 dialog --title "PC-BSD Installation Menu" --menu "Please select from the following options:" 20 55 15 install "Start graphical install" vesa "Start graphical install (VESA)" utility "System Utilities" reboot "Reboot the system" 2>/tmp/answer 
     50dialog --title "PC-BSD Installation Menu" --menu "Please select from the following options:" 20 55 15 install "Start text install" xorg "Start graphical install" vesa "Start graphical install (VESA)" utility "System Utilities" reboot "Reboot the system" 2>/tmp/answer 
    1551 
    1652ANS="`cat /tmp/answer`" 
    1753 
    1854case $ANS in 
    19     install) echo "Starting PC-BSD System Installer.. Please wait.." 
     55    install) text_install_menu ;; 
     56    xinstall) echo "Starting PC-BSD System Installer.. Please wait.." 
    2057             startx 2>/tmp/Xerrors ;; 
    2158       vesa) echo "Starting PC-BSD System Installer.. Please wait.." 
  • overlays/install-overlay/root/functions.sh

    r9d49c9d rb2dabfa  
    6868 
    6969} 
     70 
     71rtn() 
     72{ 
     73   echo "Press ENTER to continue" 
     74   read tmp 
     75} 
Note: See TracChangeset for help on using the changeset viewer.