From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1d29G3-0006fK-Jf for mharc-grub-devel@gnu.org; Sun, 23 Apr 2017 00:36:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d29G1-0006fE-55 for grub-devel@gnu.org; Sun, 23 Apr 2017 00:36:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d29Fy-0005m3-1V for grub-devel@gnu.org; Sun, 23 Apr 2017 00:36:21 -0400 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]:33391) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d29Fx-0005lv-PT for grub-devel@gnu.org; Sun, 23 Apr 2017 00:36:17 -0400 Received: by mail-lf0-x22c.google.com with SMTP id 88so60064312lfr.0 for ; Sat, 22 Apr 2017 21:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=8AL+8PJPDeex1zPxNHfaArsqZvRWllMzY4WBsEhJiBw=; b=llCmhbFUFG/hHhN1YC+ZoCSJEbvC6PfMFj7f2ZndN9kEH87DrQkf3ghAZaXBg3BJHw ztoDRNtCrnWh3qhiAade0xgYNO2yYVrGGrjhpDhjTqmf/PNhMzrBiOZXTanF4FcOzSXl dHNbJ+Y5nBZZjtUoBcQLyCqHU6kZ0Y1n3UjMGCA5R5Dm77XGHEHxEIGYFQUzXEA52LL7 7YuGabLU6DrtqvcFmJAltEbn4DmHqTyDP0/HLZDO+XeWEZuZo9U+qHRhRXHMhAIcu/Wv 9gpSp2o/3qKNu1p/khnMixsEtH9B5tvWtkjgrdoajVAA0GYtxEssjDLUVyDuee8PG+03 u9rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=8AL+8PJPDeex1zPxNHfaArsqZvRWllMzY4WBsEhJiBw=; b=eP3Q77Nqr1tw5I7Ha/ncy2SLaYcB4jKYm1F4v0uZuJCB8bF5n/gnzIGFHc0+Z73cAw UkWv4UwYe5jEUZLa+bV3r+T3i3l5xgM921QvId6RtoccdgDIucs7TkoGPHcAGhY3S0Ee gceCJCvU4bgLCU0AV6u6k/DuWPXThXlCuPjCFokS/IzYEcQupYdeLuzyzaMCy1Myd9Ju MFzi6RRHc+MDhaHvNiGvncQ+Rue7uoUe6b8Ebz6RHt3mtcAhmeQPUZKytI89Z9YxVMA5 IQoBYglbZQsIgWJo3vu8dyBo+7QE7mvwi+rkAbUp6B7Tl2PcY1huU5ptW940eC8FPaH9 Vo5Q== X-Gm-Message-State: AN3rC/7lgHSH/4+7Ja2A94H5HnJzuOcJbVbmVWBtUZL63ydLkgXfjR1C 9nWH7dAxwf3EJ9MI X-Received: by 10.25.160.147 with SMTP id j141mr5933913lfe.19.1492922175896; Sat, 22 Apr 2017 21:36:15 -0700 (PDT) Received: from [192.168.1.5] (ppp109-252-90-38.pppoe.spdop.ru. [109.252.90.38]) by smtp.gmail.com with ESMTPSA id x1sm2477286lfb.37.2017.04.22.21.36.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Apr 2017 21:36:14 -0700 (PDT) Subject: Re: grub-install deleting long UEFI entries bug ? To: grub-devel@gnu.org References: <58FBFB47.80603@gmail.com> From: Andrei Borzenkov Message-ID: Date: Sun, 23 Apr 2017 07:36:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <58FBFB47.80603@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::22c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2017 04:36:22 -0000 23.04.2017 03:54, adrian15 пишет: > grub-install seems to be deleting long UEFI entries > > (*) What the bug is > > * Add an UEFI entry with this label (Remove the single quotes): > '(Rescapp added) \EFI\ubuntu\MokManager.efi' > > Example: > > efibootmgr -c \ > -d /dev/sda \ > -p 2 \ > -L '(Rescapp added) \EFI\ubuntu\MokManager.efi' \ > -l '\EFI\ubuntu\MokManager.efi' > > * Run grub-install /dev/sda or maybe just grub-install > > I expect the newly added uefi entry to be there. > What I find is that the entry has been lost or deleted! > What is value of GRUB_DISTRIBUTOR in /etc/default/grub? ... > > Maybe grub-install uses efibootmgr as an auxiliar tool and the problem > is in Ubuntu's efibootmgr? > Yes. > It would be nice if someone could point us on where does grub-install > handles the uefi boot entries so that we can take a deeper look into it. > grub-core/osdep/unix/platform.c