Skip to content

Commit

Permalink
extra: Add efi support to setup.sh
Browse files Browse the repository at this point in the history
Origin: adoptware#43
Signed-off-by: Philippe Coval <[email protected]>
Change-Id: I974c8f838d41bfc2dd0fa9ef01e6f31b48bdfeb7
  • Loading branch information
rzr committed Feb 28, 2024
1 parent 5a4c263 commit 63d6f05
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions extra/profile/pinball/etc/pinball/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -x

selfdir=$(dirname -- "$0")
extra_dir=$(realpath -- "${selfdir}/../../../../../extra")
PATH="${selfdir}:${PATH}"
PATH="${selfdir}:${PATH}:/usr/sbin:/sbin"
LANG="en_US.UTF-8"
project="pinball"
profile="pincab"
Expand All @@ -17,6 +17,8 @@ git_branch="master"
# git_branch="sandbox/rzr/devel/master" # TODO
sudo=$(which sudo || echo)
export DEBIAN_FRONTEND=noninteractive
HOSTYPE="${HOSTYPE:=generic}"


find /etc/pinball ||:
. /etc/os-release ||:
Expand Down Expand Up @@ -81,16 +83,20 @@ echo "# Main package"

echo "# Needed packages"
${sudo} apt-get install --yes \
fdisk \
sudo \
network-manager \
#EOL

echo "# Bootloader"
bootloader=${bootloader:=grub-pc}
fdisk -l | grep 'Disklabel type: gpt' && bootloader='grub-efi' ||:

echo "# Hardware support: ${HOST_TYPE}"
list="
${bootloader}
firmware-linux-free
firmware-linux-nonfree
grub-invaders
grub-pc
linux-image-${HOSTYPE}
memtest86+
"
Expand Down

0 comments on commit 63d6f05

Please sign in to comment.