Skip to content

Commit

Permalink
extra: Add efi support to setup.sh
Browse files Browse the repository at this point in the history
Origin: #43
Signed-off-by: Philippe Coval <[email protected]>
Change-Id: I974c8f838d41bfc2dd0fa9ef01e6f31b48bdfeb7
  • Loading branch information
rzr committed Oct 28, 2024
1 parent e47ef33 commit 51927cd
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 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 Expand Up @@ -203,6 +209,8 @@ if true ; then
| ${sudo} tee $file.tmp && ${sudo} mv $file.tmp $file
done
fi
git -C /etc add .
git -C /etc commit -am "Add custom files"

echo "# Cleanup"
${sudo} apt-get install --yes deborphan
Expand Down

0 comments on commit 51927cd

Please sign in to comment.