[variants] Update update.sh

This commit is contained in:
Dennis ten Hoove 2024-09-03 17:21:45 +02:00
parent 40d767e013
commit f567be3045
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1
3 changed files with 15 additions and 6 deletions

View file

@ -1,2 +1,5 @@
# We switched from using EFI vars to timestamped bootloader entries, ensure the old named var is no longer used
# Arkdep is pre EFI var drop version
if [[ -f $arkdep_boot/loader/entries/${data[0]}.conf ]]; then
mv $arkdep_boot/loader/entries/${data[0]}.conf $arkdep_boot/loader/entries/$(date +%Y%m%d-%H%M%S)-${data[0]}+3.conf
bootctl set-default ''
fi

View file

@ -1,2 +1,5 @@
# We switched from using EFI vars to timestamped bootloader entries, ensure the old named var is no longer used
# Arkdep is pre EFI var drop version
if [[ -f $arkdep_boot/loader/entries/${data[0]}.conf ]]; then
mv $arkdep_boot/loader/entries/${data[0]}.conf $arkdep_boot/loader/entries/$(date +%Y%m%d-%H%M%S)-${data[0]}+3.conf
bootctl set-default ''
fi

View file

@ -1,2 +1,5 @@
# We switched from using EFI vars to timestamped bootloader entries, ensure the old named var is no longer used
# Arkdep is pre EFI var drop version
if [[ -f $arkdep_boot/loader/entries/${data[0]}.conf ]]; then
mv $arkdep_boot/loader/entries/${data[0]}.conf $arkdep_boot/loader/entries/$(date +%Y%m%d-%H%M%S)-${data[0]}+3.conf
bootctl set-default ''
fi