# /usr/lib/kernel/install.d/90-loaderentry.install, see also
# https://kernel-team.pages.debian.net/kernel-handbook/ch-update-hooks.html
# /usr/lib/kernel/install.d/90-loaderentry.install, see also
# https://kernel-team.pages.debian.net/kernel-handbook/ch-update-hooks.html
potential_esps(){
lsblk --list -o PATH,UUID,FSTYPE,PARTTYPE,MOUNTPOINT |
awk '$3 == "vfat" && $4 == "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" && $5 == "" {print $1,$2}'
potential_esps(){
lsblk --list -o PATH,UUID,FSTYPE,PARTTYPE,MOUNTPOINT |
awk '$3 == "vfat" && $4 == "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" && $5 == "" {print $1,$2}'
- warn "No ${ESP_LIST} found cannot update installed kernels - exiting"
- esps="$(potential_esps)"
- warn "add the UUIDs of one of the following devices to ${ESP_LIST}:"
- warn "${esps}"
- exit 1
+ warn "No ${ESP_LIST} found, skipping ESP sync."
+ exit 0
cat "${ESP_LIST}" | while IFS= read -r uuid; do
if ! (echo "${uuid}" | grep -qE '[0-9a-fA-F]{4}-[0-9a-fA-F]{4}'); then
warn "WARN: ${uuid} read from ${ESP_LIST} does not look like a VFAT-UUID - skipping"
cat "${ESP_LIST}" | while IFS= read -r uuid; do
if ! (echo "${uuid}" | grep -qE '[0-9a-fA-F]{4}-[0-9a-fA-F]{4}'); then
warn "WARN: ${uuid} read from ${ESP_LIST} does not look like a VFAT-UUID - skipping"