Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

hooks/lvm2: close fd6 on lvm invocation

This avoids the obnoxious 'zomg im leaking FDs' message that no one
fucking cares about.
  • Loading branch information...
commit d364f0e3dca01c8a7d03532de565abff71565895 1 parent f4738c0
@falconindy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  hooks/lvm2
View
2  hooks/lvm2
@@ -18,6 +18,6 @@ if [ -e /sys/class/misc/device-mapper ]; then
msg "Activating logical volumes..."
[ -d /etc/lvm ] && /sbin/lvm vgscan
- /sbin/lvm vgchange ${quiet:+--quiet} --sysinit -ay
+ /sbin/lvm vgchange ${quiet:+--quiet} --sysinit -ay 6>&-
fi
Please sign in to comment.
Something went wrong with that request. Please try again.