X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F104_set-rootfs_dest_backing.patch;fp=debian%2Fpatches%2F104_set-rootfs_dest_backing.patch;h=90f3dc4b24667ad1d9929fb64f05742e5dc57ddb;hb=d6df506b889526a9c20e1750bc58f0e4b7fbc744;hp=0000000000000000000000000000000000000000;hpb=d3a1d529fc7d38f3d9eb1ba18caaac1143ce4869;p=live-boot-grml.git diff --git a/debian/patches/104_set-rootfs_dest_backing.patch b/debian/patches/104_set-rootfs_dest_backing.patch new file mode 100644 index 0000000..90f3dc4 --- /dev/null +++ b/debian/patches/104_set-rootfs_dest_backing.patch @@ -0,0 +1,26 @@ +commit 64aeb1209c42c4897113af20e24b0a4dc3519add +Author: Evgeni Golov +Date: Mon Mar 11 09:17:58 2013 +0100 + + 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. + +diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh +index cb3940b..fb7c644 100755 +--- a/scripts/boot/9990-misc-helpers.sh ++++ b/scripts/boot/9990-misc-helpers.sh +@@ -1482,7 +1482,7 @@ activate_custom_mounts () + # ignore the loop below and set rootfs_dest_backing=$dest + local rootfs_dest_backing + rootfs_dest_backing="" +- if [ -n "${opt_link}" ] ++ if [ -n "${opt_link}" ] || [ -n "${opt_union}" ] + then + for d in /live/rootfs/* + do