Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Add ability to boot into text-install mode, and add new dialog menu o…
Browse files Browse the repository at this point in the history
…ptions

to walk through the install wizard / edit / install menus
  • Loading branch information
Kris Moore committed Oct 15, 2013
1 parent 0843d04 commit b2dabfa
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 8 deletions.
6 changes: 3 additions & 3 deletions overlays/install-overlay/boot/grub/grub.cfg
Expand Up @@ -68,7 +68,7 @@ loadfont ($root)/boot/grub/themes/pcbsd/dejavu_bold_14.pf2
insmod png insmod png
set theme=($root)/boot/grub/themes/pcbsd/theme.txt set theme=($root)/boot/grub/themes/pcbsd/theme.txt
export theme export theme
set timeout=10 set timeout=15


menuentry "Graphical Install" { menuentry "Graphical Install" {
kfreebsd /boot/kernel/kernel kfreebsd /boot/kernel/kernel
Expand All @@ -77,15 +77,15 @@ menuentry "Graphical Install" {
set kFreeBSD.kern.geom.eli.visible_passphrase=2 set kFreeBSD.kern.geom.eli.visible_passphrase=2
} }


menuentry "Run X in VESA mode" { menuentry "Graphical Install - (Failsafe VESA mode)" {
kfreebsd /boot/kernel/kernel kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL
set kFreeBSD.kern.geom.eli.visible_passphrase=2 set kFreeBSD.kern.geom.eli.visible_passphrase=2
set kFreeBSD.xvesa=YES set kFreeBSD.xvesa=YES
} }


menuentry "Emergency Console" { menuentry "Text Install / Emergency Console" {
kfreebsd /boot/kernel/kernel kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL
Expand Down
2 changes: 1 addition & 1 deletion overlays/install-overlay/boot/grub/themes/pcbsd/theme.txt
Expand Up @@ -22,7 +22,7 @@
# THE SOFTWARE. # THE SOFTWARE.


#general settings #general settings
title-text: "PC-BSD Bootloader" title-text: "PC-BSD / TrueOS Installation"
title-font: "DejaVu Sans Bold 14" title-font: "DejaVu Sans Bold 14"
title-color: "#000" title-color: "#000"
message-font: "DejaVu Sans Regular 12" message-font: "DejaVu Sans Regular 12"
Expand Down
2 changes: 1 addition & 1 deletion overlays/install-overlay/root/PCBSDStart.sh
@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright 2007 PC-BSD Software # Copyright 2013 PC-BSD Software
# http://www.pcbsd.com # http://www.pcbsd.com
# Author: Kris Moore # Author: Kris Moore
########################################################################### ###########################################################################
Expand Down
43 changes: 40 additions & 3 deletions overlays/install-overlay/root/PCBSDtext.sh
@@ -1,22 +1,59 @@
#!/bin/sh #!/bin/sh
# PC-BSD System Install Menu # PC-BSD System Install Menu
# Copyright 2007 PC-BSD Software # Copyright 2013 PC-BSD Software
# http://www.pcbsd.com # http://www.pcbsd.com
# Author: Kris Moore # Author: Kris Moore
########################################################################### ###########################################################################


. /root/functions.sh

text_install_menu()
{

while :
do
if [ -e "/tmp/sys-install.cfg" ] ; then
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
else
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
fi

ANS="`cat /tmp/answer`"

case $ANS in
wizard) pc-installdialog
rtn
;;
edit) vi /tmp/sys-install.cfg
rtn
;;
install) echo "This will begin the installation, continue?"
echo -e "(y/n)\c"
read tmp
if [ "$tmp" = "y" -o "$tmp" = "Y" ] ; then
pc-sysinstall -c /tmp/sys-install.cfg
rtn
fi
;;
back) break ;;
*) ;;
esac
done
}

DRES="1024x768" DRES="1024x768"


while while
i="1" i="1"
do do


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 dialog --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


ANS="`cat /tmp/answer`" ANS="`cat /tmp/answer`"


case $ANS in case $ANS in
install) echo "Starting PC-BSD System Installer.. Please wait.." install) text_install_menu ;;
xinstall) echo "Starting PC-BSD System Installer.. Please wait.."
startx 2>/tmp/Xerrors ;; startx 2>/tmp/Xerrors ;;
vesa) echo "Starting PC-BSD System Installer.. Please wait.." vesa) echo "Starting PC-BSD System Installer.. Please wait.."
cp /root/cardDetect/XF86Config.compat /etc/X11/xorg.conf cp /root/cardDetect/XF86Config.compat /etc/X11/xorg.conf
Expand Down
6 changes: 6 additions & 0 deletions overlays/install-overlay/root/functions.sh
Expand Up @@ -67,3 +67,9 @@ start_xorg()
fi fi


} }

rtn()
{
echo "Press ENTER to continue"
read tmp
}

0 comments on commit b2dabfa

Please sign in to comment.