release 3.0.1-1+grml.1
[live-boot-grml.git] / debian / patches / 102_check-for-overlay-not-device.patch
1 commit 14c3a9aed852c7383cf67bb90f84ff10eb36cdfd
2 Author: Evgeni Golov <evgeni@grml.org>
3 Date:   Wed Mar 6 15:20:46 2013 +0100
4
5     Checking for ${overlay}, not ${device} when trying to close ${overlay}.
6
7 diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh
8 index 10054e8..c6de171 100755
9 --- a/scripts/boot/9990-overlay.sh
10 +++ b/scripts/boot/9990-overlay.sh
11 @@ -392,7 +392,7 @@ setup_unionfs ()
12                 # Close unused overlays (e.g. due to missing $persistence_list)
13                 for overlay in ${overlay_devices}
14                 do
15 -                       if echo ${used_overlays} | grep -qve "^\(.* \)\?${device}\( .*\)\?$"
16 +                       if echo ${used_overlays} | grep -qve "^\(.* \)\?${overlay}\( .*\)\?$"
17                         then
18                                 close_persistence_media ${overlay}
19                         fi