diff --git a/arkdep-build.d/arkanelinux/update.sh b/arkdep-build.d/arkanelinux/update.sh index ef551c6..e644167 100644 --- a/arkdep-build.d/arkanelinux/update.sh +++ b/arkdep-build.d/arkanelinux/update.sh @@ -1,2 +1,5 @@ -# We switched from using EFI vars to timestamped bootloader entries, ensure the old named var is no longer used -bootctl set-default '' +# 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 diff --git a/arkdep-build.d/test-arkanelinux-kde/update.sh b/arkdep-build.d/test-arkanelinux-kde/update.sh index ef551c6..e644167 100644 --- a/arkdep-build.d/test-arkanelinux-kde/update.sh +++ b/arkdep-build.d/test-arkanelinux-kde/update.sh @@ -1,2 +1,5 @@ -# We switched from using EFI vars to timestamped bootloader entries, ensure the old named var is no longer used -bootctl set-default '' +# 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 diff --git a/arkdep-build.d/test-arkanelinux-pantheon/update.sh b/arkdep-build.d/test-arkanelinux-pantheon/update.sh index ef551c6..e644167 100644 --- a/arkdep-build.d/test-arkanelinux-pantheon/update.sh +++ b/arkdep-build.d/test-arkanelinux-pantheon/update.sh @@ -1,2 +1,5 @@ -# We switched from using EFI vars to timestamped bootloader entries, ensure the old named var is no longer used -bootctl set-default '' +# 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