create-entry.sh

on kitten's pastes | raw

expires: 29 Jun, 2024

 1#!/bin/sh -x
 2
 3mount -t efivarfs none /sys/firmware/efi/efivars
 4
 5root="$(realpath /dev/disk/by-label/kalla)"
 6boot="$(realpath /dev/disk/by-label/BORJAN)"
 7
 8params="root=LABEL=kalla rootfstype=btrfs rootflags=subvol=root rw initrd=\intel-ucode.img initrd=\initramfs-edge"
 9
10efibootmgr --create \
11	--label Alpine \
12	--disk ${boot%p*} \
13	--part ${boot#*p} \
14	--loader /vmlinuz-edge \
15	--unicode "$params"
16