From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VscnC-0004no-C2 for mharc-grub-devel@gnu.org; Mon, 16 Dec 2013 13:21:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vscmz-0004jo-Jx for grub-devel@gnu.org; Mon, 16 Dec 2013 13:21:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vscmr-0001Ug-77 for grub-devel@gnu.org; Mon, 16 Dec 2013 13:21:09 -0500 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:35667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vscmq-0001UN-Rm for grub-devel@gnu.org; Mon, 16 Dec 2013 13:21:01 -0500 Received: by mail-la0-f47.google.com with SMTP id ep20so2843788lab.34 for ; Mon, 16 Dec 2013 10:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=2kYtC1o2GVck3u4TKj7hgrKa/fxlTfIyLob1pS3Ktsg=; b=H5VN6wl7wLzYxg2cvSlZ+3sfMfZrpBjrkHnGggDsAsMiYJe+zVvfY/1bOS4E3r7ZR2 RZRbcnuGPMyNrLiA3J17yfsleT57ZgZy7WNt6WgA9sdXk5hvfT5udCThf9ZI4NsURA1M 30omlGAemp22AqEb6q50HRNbu5g8wJgzW4rB8hymKS9uCuSXPYYLmKLeUlBuYdtrog5S BOQD8wiaPKSzch4hzPXnk14GfnaYxAM5xMwIIkDxUXtDYjpIoH+KbvZtIQ7bVAxAsFHh qdSKFyvRkDqMn8lS6HNNgYi2O3onthFKmwwxjVogMoP5PqLPhs7YyB/3VPBFNobqUSjx 8heQ== X-Received: by 10.152.44.202 with SMTP id g10mr7403510lam.16.1387218059201; Mon, 16 Dec 2013 10:20:59 -0800 (PST) Received: from localhost.localdomain (ppp91-76-134-134.pppoe.mtu-net.ru. [91.76.134.134]) by mx.google.com with ESMTPSA id y11sm10407016lbm.13.2013.12.16.10.20.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Dec 2013 10:20:58 -0800 (PST) From: Andrey Borzenkov To: grub-devel@gnu.org Subject: [PATCH 0/2] allow redirect of stderr in grub_util_exec* Date: Mon, 16 Dec 2013 22:20:50 +0400 Message-Id: <1387218052-22765-1-git-send-email-arvidjaar@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <20131216062201.45b549a4@opensuse.site> References: <20131216062201.45b549a4@opensuse.site> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22f X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:21:20 -0000 > Hmm ... I'm not sure we really need it at all (in > grub_install_get_default_x86_platform). Directory /sys/firmware/efi is > not created by module efivars and we check whether this directory > exists. I think it can safely be removed. OK, it was changed relatively recently so we still need modprobe but just need to silence it like it was before in shell code. What about the following? Andrey Borzenkov (2): consolidate grub_util_exec code use grub_util_exec_redirect_all to silence "moprobe efivars" grub-core/osdep/linux/platform.c | 4 +- grub-core/osdep/unix/exec.c | 134 +++++++++++++++++++-------------------- include/grub/emu/exec.h | 3 + include/grub/osdep/exec_unix.h | 39 ------------ 4 files changed, 70 insertions(+), 110 deletions(-) delete mode 100644 include/grub/osdep/exec_unix.h -- 1.8.4