Fixing condition for setting rootfs_dest_backing.
authorEvgeni Golov <evgeni@grml.org>
Mon, 11 Mar 2013 08:17:58 +0000 (09:17 +0100)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 6 May 2013 11:54:16 +0000 (13:54 +0200)
commit947290a2a0c11f6c37283b40d9b7a9ae89fc8a47
tree674d2881a816ae2982d7ff25b6579884f5140242
parentbcb91e3cacfe5375539e0becba9421a9c8c53c5d
Fixing condition for setting rootfs_dest_backing.

The fix for the opt_link check in d5ed942 broke the code as it inverted the
meaning. Previously it ran the code iff opt_link was empty, as [ -n ] is
true. In the case opt_link was not empty, the code evaluated to [ -n foo],
which is invalid syntax and thus false. This, however, was almost the expected
behaviour, as rootfs_dest_backing is needed for opt_union and (in read-only
mode) for opt_link.
scripts/boot/9990-misc-helpers.sh