From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1d25nX-00026T-Sd for mharc-grub-devel@gnu.org; Sat, 22 Apr 2017 20:54:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d25nV-00026N-Dl for grub-devel@gnu.org; Sat, 22 Apr 2017 20:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d25nR-0004KP-H5 for grub-devel@gnu.org; Sat, 22 Apr 2017 20:54:41 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:33846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d25nR-0004KA-9M for grub-devel@gnu.org; Sat, 22 Apr 2017 20:54:37 -0400 Received: by mail-wr0-x244.google.com with SMTP id 6so2175067wrb.1 for ; Sat, 22 Apr 2017 17:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=e/lo6hINJUGL+k+WPwJ5C08E6kIngFofICMdcc8nQiQ=; b=prT7qKMq+++qNMTVe6Q491pn4nD8nVgnAJLh2106L0vjtpfCy9Bhr34dD0yPgeqM4W +Cj93K2kaXkVyF7MrA1uYceQTI+YSFj1dXs9cOdXR+gIrnIaY/ChgY8RS3NAdIqedupf PFtTrKtQBBuLk6E7CCx82EzzJ8mK0wxwxjxKWk2pmDad8R9j9Bi1Rgfmc7Zi1dVGP5IX Pm6ItHMrbio5SbZcTWuXbQ9LTzlPioeBoDY2mzTKcqL9mgEUUC09+99ZpMCwlGhpfCVN /ThUNiWPyyh2c/NmxqS58pBaEh/XMuvY4VrLF07IGs4Z1V8U26SUh00hA3XqS398vOMv 84HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=e/lo6hINJUGL+k+WPwJ5C08E6kIngFofICMdcc8nQiQ=; b=h5ChPrlCODHHeyfK5HQbOT+YSm8m8yM1H9WwSJ1wAFJ/H5h5xyZ7dIjxuhxezml7qM hDTq5KUr1pTkxKVwgwhN4vkKa9DxIsRg/fZtyOK83MqZL4dc05jDImVsUncW9ciCjuVy 7TSapzNOdK/64A2PYirbqjCWG9r6OBFVYJr8qHFGc/yJ12JXZZZueuj0FOhpK43FfkiH Wn841dBwOwlOd7PBD+/4iKeRw81BSoKrsUSB5LLnVuchIIDdUQclOCFcZQ26buWv5KVd +VKwR5mRGkesyjA2Nu81tfYBnQxOUgK8Lh/oa63AEboncZRObmRycXHUSQmfgLkE+zMF o3kQ== X-Gm-Message-State: AN3rC/7rgWV7L4d/lf78QVSeFSVCs+oZNU6g9Cggga1XEvZk7LYDgGZ/ 3DenMIOez763AcrV X-Received: by 10.223.161.65 with SMTP id r1mr2895337wrr.114.1492908874282; Sat, 22 Apr 2017 17:54:34 -0700 (PDT) Received: from [192.168.10.45] (48.red-83-32-58.dynamicip.rima-tde.net. [83.32.58.48]) by smtp.gmail.com with ESMTPSA id 38sm17057441wru.1.2017.04.22.17.54.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Apr 2017 17:54:33 -0700 (PDT) Message-ID: <58FBFB47.80603@gmail.com> Date: Sun, 23 Apr 2017 02:54:31 +0200 From: adrian15 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: grub-install deleting long UEFI entries bug ? 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:400c:c0c::244 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 00:54:42 -0000 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! (*) Exact version where is found 2.02~beta2-36ubuntu3.2 (Ubuntu 16.04's grub) (*) Can be this replicated? Can anyone replicate this is in upstream's git head? Maybe is it a well known bug which was already fixed? (*) Video of the bug This is a video of the bug: https://www.youtube.com/watch?v=rhAg_ojj3VQ . At 18 minutes 9 seconds I start to add an uefi entry. At 21 minutes 3 seconds I run an option so that update-grub and grub-install is run. At 22 minutes 31 seconds I find the bug for the first time. At 27 minutes 37 seconds I start to the debug the problem manually to discard any of the Rescapp scripts being involved in the problem. (*) What might be the problem. I initially thought that the problem was because of '(', ')' or '\' characters. After additional tests there seems to be a problem with the length of the UEFI boot entry. Maybe grub-install uses efibootmgr as an auxiliar tool and the problem is in Ubuntu's efibootmgr? 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. Thank you! adrian15 -- Support free software. Donate to Super Grub Disk. Apoya el software libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/donate/