Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions release/packages/ucl/ghostbsd-cert-all.ucl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* GhostBSD Certificate Package
*/

comment = "GhostBSD Package Repository Certificate"

desc = <<EOD
Public key certificate for authenticating packages from the GhostBSD
package repository.
EOD

annotations {
set = "minimal,minimal-jail"
}
2 changes: 1 addition & 1 deletion share/keys/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIR= pkg pkgbase-15
SUBDIR= pkg pkgbase-15 ssl

.include <bsd.subdir.mk>
2 changes: 1 addition & 1 deletion share/mk/src.libnames.mk
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ LIBKRB5SS?= ${LIBKRB5SUPPORTDIR}/libkrb5ss${PIE_SUFFIX}.a
LIBKRB5SUPPORTDIR= ${_LIB_OBJTOP}/krb5/util/support
LIBKRB5SUPPORT?= ${LIBKRB5SUPPORTDIR}/libkrb5support${PIE_SUFFIX}.a
LIBKRB5PROFILEDIR= ${_LIB_OBJTOP}/krb5/util/profile
LIBKRB5PROFILE?= ${LIBPROFILEDIR}/libkrb5profile${PIE_SUFFIX}.a
LIBKRB5PROFILE?= ${LIBKRB5PROFILEDIR}/libkrb5profile${PIE_SUFFIX}.a
LIBVERTODIR= ${_LIB_OBJTOP}/krb5/util/verto
LIBVERTO?= ${LIBVERTODIR}/libverto${PIE_SUFFIX}.a
.else
Expand Down
3 changes: 2 additions & 1 deletion stand/defaults/loader.conf
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ audit_event_type="etc_security_audit_event"
#geom_eli_passphrase_prompt="NO" # Prompt for geli(8) passphrase to mount root
bootenv_autolist="YES" # Auto populate the list of ZFS Boot Environments
#beastie_disable="NO" # Turn the beastie boot menu on and off
loader_menu_hidden="YES" # Set to YES to hide boot menu; press any key during autoboot to reveal it
efi_max_resolution="1x1" # Set the max resolution for EFI loader to use:
# 480p, 720p, 1080p, 1440p, 2160p/4k, 5k, or
# WidthxHeight (e.g. 1920x1080)
Expand Down Expand Up @@ -239,4 +240,4 @@ loader_menu_title="Welcome to GhostBSD"
boot_mute="YES"

# Speed up boot time
autoboot_delay="5"
autoboot_delay="2"
11 changes: 11 additions & 0 deletions stand/defaults/loader.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,17 @@ be displayed.
If set to
.Dq YES ,
the beastie boot menu will be skipped.
.It Va loader_menu_hidden
If set to
.Dq YES ,
the boot menu will not be drawn during the autoboot countdown.
Instead, a single line prompt
.Pq Dq Li "Press any key for boot menu..."
is displayed.
If a key is pressed, the full menu is revealed; otherwise the system boots
normally when the countdown expires.
The countdown duration is controlled by
.Va autoboot_delay .
.It Va loader_autoboot_show Pq Dq Li YES
If set to
.Dq NO ,
Expand Down
1 change: 1 addition & 0 deletions stand/lua/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function core.setVerbose(verbose)

if verbose then
loader.setenv("boot_verbose", "YES")
loader.setenv("boot_mute", "NO")
else
loader.unsetenv("boot_verbose")
end
Expand Down
41 changes: 23 additions & 18 deletions stand/lua/gfx-glogo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,29 @@

return {
logo = {
graphic = {
" ,gggggg. ",
" ,agg9* .g) ",
" .agg* ._.,gg* ",
" ,gga* (ggg*' ",
" ,ga* ,ga* ",
" ,ga' .ag* ",
" ,ga' .agga' ",
" 9g' .agg'g*,a ",
" 'gggg*',gga' ",
" .gg*' ",
" .gga* ",
" .gga* ",
" (ga* "
ascii = {
image = {
" ,gggggg. ",
" ,agg9* .g) ",
" .agg* ._.,gg* ",
" ,gga* (ggg*' ",
" ,ga* ,ga* ",
" ,ga' .ag* ",
" ,ga' .agga' ",
" 9g' .agg'g*,a ",
" 'gggg*',gga' ",
" .gg*' ",
" .gga* ",
" .gga* ",
" (ga* "
},
requires_color = false,
shift = {x = 5, y = 3},
},
fb = {
image = "/boot/images/ghostbsd-logo.png",
width = 15,
shift = {x = 2, y = -2},
},
requires_color = false,
shift = {x = 5, y = 3},
image = "/boot/images/ghostbsd-logo.png",
image_rl = 15
}
}
59 changes: 51 additions & 8 deletions stand/lua/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -517,16 +517,28 @@ function menu.run()
return
end

menu.draw(menu.default)
local hidden = loader.getenv("loader_menu_hidden")
if hidden ~= nil and hidden:lower() == "yes" then
if delay ~= nil then
autoboot_key = menu.autoboothidden(delay)
-- nil means timed out and booted
if autoboot_key == nil then
return
end
end
menu.draw(menu.default)
else
menu.draw(menu.default)

if delay ~= nil then
autoboot_key = menu.autoboot(delay)
if delay ~= nil then
autoboot_key = menu.autoboot(delay)

-- autoboot_key should return the key pressed. It will only
-- return nil if we hit the timeout and executed the timeout
-- command. Bail out.
if autoboot_key == nil then
return
-- autoboot_key should return the key pressed. It will only
-- return nil if we hit the timeout and executed the timeout
-- command. Bail out.
if autoboot_key == nil then
return
end
end
end

Expand Down Expand Up @@ -580,6 +592,37 @@ function menu.autoboot(delay)
return nil
end

function menu.autoboothidden(delay)
local endtime = loader.time() + delay
local time
local last
repeat
time = endtime - loader.time()
if last == nil or last ~= time then
last = time
screen.setcursor(1, 1)
printc("[Enter] boot now, any other key for boot menu... " .. time .. " ")
screen.defcursor()
end
if io.ischar() then
local ch = io.getchar()
screen.setcursor(1, 1)
printc(string.rep(" ", 79))
screen.defcursor()
if ch == core.KEY_ENTER then
break
end
return ch
end

loader.delay(50000)
until time <= 0

local cmd = loader.getenv("menu_timeout_command") or "boot"
cli_execute_unparsed(cmd)
return nil
end

-- CLI commands
function cli.menu()
menu.run()
Expand Down
2 changes: 1 addition & 1 deletion sys/conf/package-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26.1-R15.0b3
26.2-R15.1a1
Loading