1 commit 64aeb1209c42c4897113af20e24b0a4dc3519add
2 Author: Evgeni Golov <evgeni@grml.org>
3 Date: Mon Mar 11 09:17:58 2013 +0100
5 Fixing condition for setting rootfs_dest_backing.
7 The fix for the opt_link check in d5ed942 broke the code as it inverted the
8 meaning. Previously it ran the code iff opt_link was empty, as [ -n ] is
9 true. In the case opt_link was not empty, the code evaluated to [ -n foo],
10 which is invalid syntax and thus false. This, however, was almost the expected
11 behaviour, as rootfs_dest_backing is needed for opt_union and (in read-only
14 diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh
15 index cb3940b..fb7c644 100755
16 --- a/scripts/boot/9990-misc-helpers.sh
17 +++ b/scripts/boot/9990-misc-helpers.sh
18 @@ -1482,7 +1482,7 @@ activate_custom_mounts ()
19 # ignore the loop below and set rootfs_dest_backing=$dest
20 local rootfs_dest_backing
21 rootfs_dest_backing=""
22 - if [ -n "${opt_link}" ]
23 + if [ -n "${opt_link}" ] || [ -n "${opt_union}" ]
25 for d in /live/rootfs/*