modify advancedMenu

This commit is contained in:
Ing 2024-03-12 21:24:31 +08:00
parent dabab56815
commit 1df5b0956a
14 changed files with 4425 additions and 4401 deletions

View File

@ -85,7 +85,12 @@ if [ "${BUS}" = "usb" ]; then
PID="0x$(udevadm info --query property --name ${LOADER_DISK} 2>/dev/null | grep ID_MODEL_ID | cut -d= -f2)"
TYPE="flashdisk"
elif [ "${BUS}" != "sata" -a "${BUS}" != "scsi" -a "${BUS}" != "nvme" -a "${BUS}" != "mmc" ]; then
die "$(TEXT "Loader disk neither USB or SATA/SCSI/NVME/MMC DoM")"
if [ "LOCALBUILD" = "${LOADER_DISK}" ]; then
echo "LOCALBUILD MODE"
TYPE="PC"
else
die "$(TEXT "Loader disk neither USB or SATA/SCSI/NVME/MMC DoM")"
fi
fi
# Save variables to user config file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,9 @@
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# sudo apt update
# sudo apt install -y autoconf automake autopoint gettext build-essential bison flex libtool dosfstools e2fsprogs
#
GRUB=${1:-"grub-2.12"}
BIOS=${2:-"i386-pc i386-efi x86_64-efi"}
@ -46,6 +49,7 @@ sudo mv device.map ${NAME}1/boot/grub/device.map
# Install grub
rm -rf grub
git clone --depth=1 -b ${GRUB} https://git.savannah.gnu.org/git/grub.git grub
pushd grub
./bootstrap
@ -85,4 +89,5 @@ sudo umount ${LOOPX}p1
sudo losetup -d ${LOOPX}
sudo rm -rf ${NAME}1
rm -f grub.img.gz
gzip grub.img