From 66ff6a382a9b992d41a13f5112ce80e35b409f4a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 Aug 2012 10:05:33 -0400 Subject: [PATCH] stage-1-init: Close temporary file descriptor Otherwise this fd will be inherited all the way into the Upstart jobs. --- modules/system/boot/stage-1-init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/system/boot/stage-1-init.sh b/modules/system/boot/stage-1-init.sh index 824c19f0df5..593b9397e66 100644 --- a/modules/system/boot/stage-1-init.sh +++ b/modules/system/boot/stage-1-init.sh @@ -329,6 +329,8 @@ while read -u 3 mountPoint; do mountFS "$device" "$mountPoint" "$options" "$fsType" done +exec 3>&- + @postMountCommands@