summaryrefslogtreecommitdiff
path: root/scripts/boot
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/boot')
-rwxr-xr-xscripts/boot/9990-overlay.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh
index 10054e8..c6de171 100755
--- a/scripts/boot/9990-overlay.sh
+++ b/scripts/boot/9990-overlay.sh
@@ -392,7 +392,7 @@ setup_unionfs ()
# Close unused overlays (e.g. due to missing $persistence_list)
for overlay in ${overlay_devices}
do
- if echo ${used_overlays} | grep -qve "^\(.* \)\?${device}\( .*\)\?$"
+ if echo ${used_overlays} | grep -qve "^\(.* \)\?${overlay}\( .*\)\?$"
then
close_persistence_media ${overlay}
fi