Enable secure boot support option by default.

This commit is contained in:
longpanda 2022-06-12 12:01:48 +08:00
parent 9b2b4aa354
commit 85d1910722
18 changed files with 6 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -13,7 +13,7 @@ print_usage() {
echo ''
echo ' OPTION: (optional)'
echo ' -r SIZE_MB preserve some space at the bottom of the disk (only for install)'
echo ' -s/-S enable/disable secure boot support (default is disabled)'
echo ' -s/-S enable/disable secure boot support (default is enabled)'
echo ' -g use GPT partition style, default is MBR (only for install)'
echo ' -L Label of the 1st exfat partition (default is Ventoy)'
echo ' -n try non-destructive installation (only for install)'
@ -21,6 +21,7 @@ print_usage() {
}
SECUREBOOT="YES"
VTNEW_LABEL='Ventoy'
RESERVE_SIZE_MB=0
while [ -n "$1" ]; do

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -38,7 +38,7 @@
#include <gdk/gdkkeysyms.h>
#include "ventoy_gtk.h"
int g_secure_boot_support = 0;
int g_secure_boot_support = 1;
GtkWidget *g_topWindow = NULL;
GtkWidget *g_partCfgWindow = NULL;
GtkBuilder *g_pXmlBuilder = NULL;

View File

@ -436,7 +436,8 @@ void Ventoy2DiskWindow::OnInitWindow(void)
QPixmap pix2;
char ver[512];
ui->labelVentoyLocalSecure->hide();
//ui->labelVentoyLocalSecure->hide();
ui->actionSecure_Boot_Support->trigger();
m_part_group->addAction(ui->actionMBR);
m_part_group->addAction(ui->actionGPT);

View File

@ -1043,7 +1043,7 @@
}
on_select_mbr();
secure_boot_check(0);
secure_boot_check(1);
on_enable_preserve_space();