Fix leaked file descriptors
authorMichael Lass <lass@mail.uni-paderborn.de>
Fri, 20 Sep 2013 13:41:09 +0000 (15:41 +0200)
committerMichael Lass <lass@mail.uni-paderborn.de>
Fri, 20 Sep 2013 13:41:09 +0000 (15:41 +0200)
When running prepare_grub_to_access_device inside of the here document a file
descriptor to a temporary file is leaked. When prepare_grub_to_access_device
calls various lvm related commands these will complain about this.

Minimum example:
<< EOF
"$(lvs)"
EOF

Avoid this by calling prepare_grub_to_access_device before assembling the
output.


No differences found