Commit 12e374a8 authored by root's avatar root

install.sh: Create keys if uefi-key/ does not exist.

parent 24925f98
...@@ -34,12 +34,6 @@ fi ...@@ -34,12 +34,6 @@ fi
export PATH=$PATH:$HOME/.cargo/bin export PATH=$PATH:$HOME/.cargo/bin
rustup target add x86_64-unknown-linux-musl rustup target add x86_64-unknown-linux-musl
if [ ! -e /etc/uefi-key ]; then
mkdir /etc/uefi-key
fi
## Install others ## Install others
apt -y install libssl-dev apt -y install libssl-dev
# needed to build fmt library # needed to build fmt library
...@@ -93,6 +87,20 @@ echo -e '\nInstallation finished.\nType ^C (ctrl+C) to exit.\nType Enter to proc ...@@ -93,6 +87,20 @@ echo -e '\nInstallation finished.\nType ^C (ctrl+C) to exit.\nType Enter to proc
read read
## Build UEFI application ## Build UEFI application
if [ ! -e uefi-key ]; then
mkdir uefi-key
cd uefi-key
../mkkeys.sh
cd ..
fi
if [ ! -e /etc/uefi-key ]; then
mkdir /etc/uefi-key
cp uefi-key/DB.cer /etc/uefi-key/db.cer
cp uefi-key/DB.crt /etc/uefi-key/db.crt
cp uefi-key/DB.key /etc/uefi-key/db.key
fi
# TODO: write a separate script: one to install stuff, the other to build the UEFI application # TODO: write a separate script: one to install stuff, the other to build the UEFI application
: ' : '
# creates the keys needed to sign the UEFI application if they do not exist # creates the keys needed to sign the UEFI application if they do not exist
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment