Commit 44a11e1a authored by Ophélie Gagnard's avatar Ophélie Gagnard

generation: Add a script to install the initramfs image on the same machine.

This script allows to by-pass shacache/shadir: execute ```40upload-image.sh```
instead of ```35install-image-directly.sh```.
parent a6bb8d9d
#!/bin/bash
## Temporary script created for debugging
set -e
# get the root of the git repository
GIT_ROOT=$(git rev-parse --show-toplevel)
cd "$GIT_ROOT"
# define useful variables
source generation/00env.sh
cp "$UEFI_IMAGE_NAME" "/boot/efi/EFI/Linux/$UEFI_IMAGE_NAME"
efibootmgr -b 100 -B || true
efibootmgr -b 100 --create --disk /dev/nvme0n1p1 --label "test_deploy" --loader "/EFI/Linux/$UEFI_IMAGE_NAME"
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