Received: from list by lists.gnu.org with archive (Exim 4.71) id 1csTyA-0008BY-FJ for mharc-grub-devel@gnu.org; Mon, 27 Mar 2017 08:41:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csTy7-00089m-C2 for grub-devel@gnu.org; Mon, 27 Mar 2017 08:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csTy3-0006Qc-2Q for grub-devel@gnu.org; Mon, 27 Mar 2017 08:41:55 -0400 Received: from b-painless.mh.aa.net.uk ([81.187.30.52]:55782) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1csTy2-0006PM-PB for grub-devel@gnu.org; Mon, 27 Mar 2017 08:41:50 -0400 Received: from 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.1.b.e.2.f.f.b.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:bff2:eb14::3] helo=riva.pelham.vpn.ucam.org) by b-painless.mh.aa.net.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1csTy1-0004cc-L7; Mon, 27 Mar 2017 13:41:49 +0100 Received: from ns1.pelham.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org) by riva.pelham.vpn.ucam.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csTxl-0003sJ-T1; Mon, 27 Mar 2017 13:41:33 +0100 Date: Mon, 27 Mar 2017 13:41:33 +0100 From: Colin Watson To: grub-devel@gnu.org Cc: Peter Palfrader , 858832-forwarded@bugs.debian.org Subject: [weasel@debian.org: Bug#858832: calls efibootmgr with invalid options] Message-ID: <20170327124133.GG9002@riva.ucam.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 81.187.30.52 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: Mon, 27 Mar 2017 12:41:56 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I guess that the attached bug happens because grub_install_register_efi is called on non-biosdisk-ish systems but uses grub_util_biosdisk_get_osdev to get an OS device name for efidir_grub_dev->disk, which isn't going to work so well. I'm a bit rusty here - would anyone care to venture a guess at suitable replacement code that would work on devices other than biosdisk? Thanks, -- Colin Watson [cjwatson@debian.org] --Kj7319i9nmIyA2yE Content-Type: message/rfc822 Content-Disposition: inline Return-path: Envelope-to: cjwatson@localhost Delivery-date: Mon, 27 Mar 2017 13:30:06 +0100 Received: from localhost ([127.0.0.1] helo=riva.pelham.vpn.ucam.org) by riva.pelham.vpn.ucam.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csTmg-0003fG-Jp for cjwatson@localhost; Mon, 27 Mar 2017 13:30:06 +0100 Received: from imap.dovecot.chiark.greenend.org.uk [2001:ba8:1e3::] by riva.pelham.vpn.ucam.org with IMAP (fetchmail-6.3.26) for (single-drop); Mon, 27 Mar 2017 13:30:06 +0100 (BST) Received: from master.debian.org ([82.195.75.110]) by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with esmtp (return-path cjwatson@master.debian.org) id 1csTjs-0004Mz-NU for cjwatson@chiark.greenend.org.uk; Mon, 27 Mar 2017 13:27:12 +0100 Received: from master.debian.org ([82.195.75.110]) by chiark.greenend.org.uk (SAUCE v0.9.0) with esmtp id sauce-5084-1490617-1; 27 Mar 2017 12:27:12 +0000 (GMT) Received: from cjwatson by master.debian.org with local (Exim 4.84_2) (envelope-from ) id 1csTjs-00024O-D5 for cjwatson@chiark.greenend.org.uk; Mon, 27 Mar 2017 12:27:12 +0000 Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=mailly.debian.org,EMAIL=hostmaster@mailly.debian.org (verified) by master.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1csTjr-00024I-LU for cjwatson@master.debian.org; Mon, 27 Mar 2017 12:27:12 +0000 Received: from ticharich.debian.org ([2001:41c8:1000:21::21:23]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=ticharich.debian.org,EMAIL=hostmaster@ticharich.debian.org (verified) by mailly.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1csTjr-0007Do-9y for cjwatson@master.debian.org; Mon, 27 Mar 2017 12:27:11 +0000 Received: from localhost ([::1] helo=ticharich.debian.org) by ticharich.debian.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csTjq-0007tg-Ve for cjwatson@master.debian.org; Mon, 27 Mar 2017 12:27:10 +0000 Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=mailly.debian.org,EMAIL=hostmaster@mailly.debian.org (verified) by ticharich.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1csTjq-0007tZ-P9 for dispatch+grub2@tracker.debian.org; Mon, 27 Mar 2017 12:27:10 +0000 Received: from quantz.debian.org ([2001:41c8:1000:21::21:28]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=quantz.debian.org,EMAIL=hostmaster@quantz.debian.org (verified) by mailly.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1csTjq-0007Df-G2 for dispatch+grub2@tracker.debian.org; Mon, 27 Mar 2017 12:27:10 +0000 Received: from qa by quantz.debian.org with local (Exim 4.84_2) (envelope-from ) id 1csTjq-00012p-1g for dispatch+grub2@tracker.debian.org; Mon, 27 Mar 2017 12:27:10 +0000 Received: from buxtehude.debian.org ([2607:f8f0:614:1::1274:39]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=buxtehude.debian.org,EMAIL=hostmaster@buxtehude.debian.org (verified) by quantz.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1csTjp-00012f-Nl for grub2@packages.qa.debian.org; Mon, 27 Mar 2017 12:27:09 +0000 Received: from debbugs by buxtehude.debian.org with local (Exim 4.84_2) (envelope-from ) id 1csTjk-0007Zz-TO; Mon, 27 Mar 2017 12:27:04 +0000 X-Loop: owner@bugs.debian.org Subject: Bug#858832: calls efibootmgr with invalid options Reply-To: Peter Palfrader , 858832@bugs.debian.org Resent-From: Peter Palfrader Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: debian-admin@lists.debian.org, GRUB Maintainers X-Loop: owner@bugs.debian.org Resent-Date: Mon, 27 Mar 2017 12:27:02 +0000 Resent-Message-ID: X-Debian-PR-Message: report 858832 X-Debian-PR-Package: grub-efi-arm64 X-Debian-PR-Keywords: X-Debian-PR-Source: grub2 Received: via spool by submit@bugs.debian.org id=B.149061746027684 (code B); Mon, 27 Mar 2017 12:27:02 +0000 Received: (at submit) by bugs.debian.org; 27 Mar 2017 12:24:20 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02 (2014-02-07) on buxtehude.debian.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=4.0 tests=BAYES_00,FOURLA, FROMDEVELOPER,HAS_PACKAGE,NEEDED,RCVD_IN_DNSWL_MED,URIBL_CNKR,X_DEBBUGS_CC autolearn=ham autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 49; hammy, 150; neutral, 202; spammy, 0. spammytokens: hammytokens:0.000-+--H*UA:2014-03-12, 0.000-+--H*u:2014-03-12, 0.000-+--H*u:1.5.23, 0.000-+--H*UA:1.5.23, 0.000-+--HX-Debbugs-Cc:sk:debian- Received: from sarek.noreply.org ([213.235.231.205]) by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csTh5-0007Bd-SX for submit@bugs.debian.org; Mon, 27 Mar 2017 12:24:20 +0000 Received: by sarek.noreply.org (Postfix, from userid 1000) id 6AD10E01CB; Mon, 27 Mar 2017 12:24:16 +0000 (UTC) Date: Mon, 27 Mar 2017 12:24:16 +0000 From: Peter Palfrader To: Debian Bug Tracking System Message-ID: <20170327122416.GA13201@sarek.noreply.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Reportbug-Version: 6.6.3 User-Agent: Mutt/1.5.23 (2014-03-12) Delivered-To: submit@bugs.debian.org Delivered-To: grub2@packages.qa.debian.org Delivered-To: dispatch+grub2@tracker.debian.org X-Loop: dispatch@tracker.debian.org X-Distro-Tracker-Package: grub2 X-Distro-Tracker-Keyword: bts List-Id: X-Debian-Package: grub2 X-Debian: tracker.debian.org X-PTS-Package: grub2 X-PTS-Keyword: bts Precedence: list List-Unsubscribe: Delivered-To: cjwatson@master.debian.org Package: grub-efi-arm64 Version: 2.02~beta3-5 Severity: serious User: debian-admin@lists.debian.org Usertags: needed-by-DSA-Team On upgrading from jessie to stretch on our arm64 box acker.debian.org I noticed this issue with grub-efi-arm64: acker:~# apt-get install --reinstall grub-efi-arm64 Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded. Need to get 73.0 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://mirror.netcologne.de/debian stretch/main arm64 grub-efi-arm64 arm64 2.02~beta3-5 [73.0 kB] Fetched 73.0 kB in 0s (603 kB/s) Preconfiguring packages ... (Reading database ... 62883 files and directories currently installed.) Preparing to unpack .../grub-efi-arm64_2.02~beta3-5_arm64.deb ... Unpacking grub-efi-arm64 (2.02~beta3-5) over (2.02~beta3-5) ... Setting up grub-efi-arm64 (2.02~beta3-5) ... Installing for arm64-efi platform. efibootmgr: option requires an argument -- 'd' efibootmgr version 14 usage: efibootmgr [options] -a | --active sets bootnum active -A | --inactive sets bootnum inactive -b | --bootnum XXXX modify BootXXXX (hex) -B | --delete-bootnum delete bootnum -c | --create create new variable bootnum and add to bootorder -C | --create-only create new variable bootnum and do not add to bootorder -D | --remove-dups remove duplicate values from BootOrder -d | --disk disk (defaults to /dev/sda) containing loader -r | --driver Operate on Driver variables, not Boot Variables. -e | --edd [1|3|-1] force EDD 1.0 or 3.0 creation variables, or guess -E | --device num EDD 1.0 device number (defaults to 0x80) -g | --gpt force disk with invalid PMBR to be treated as GPT -i | --iface name create a netboot entry for the named interface -l | --loader name (defaults to \EFI\redhat\grub.efi) -L | --label label Boot manager display label (defaults to "Linux") -m | --mirror-below-4G t|f mirror memory below 4GB -M | --mirror-above-4G X percentage memory to mirror above 4GB -n | --bootnext XXXX set BootNext to XXXX (hex) -N | --delete-bootnext delete BootNext -o | --bootorder XXXX,YYYY,ZZZZ,... explicitly set BootOrder (hex) -O | --delete-bootorder delete BootOrder -p | --part part (defaults to 1) containing loader -q | --quiet be quiet -t | --timeout seconds set boot manager timeout waiting for user input. -T | --delete-timeout delete Timeout. -u | --unicode | --UCS-2 pass extra args as UCS-2 (default is ASCII) -v | --verbose print additional information -V | --version return version and exit -w | --write-signature write unique sig to MBR if needed -y | --sysprep Operate on SysPrep variables, not Boot Variables. -@ | --append-binary-args file append extra args from file (use "-" for stdin) -h | --help show help/usage grub-install: error: efibootmgr failed to register the boot entry: Operation not permitted. Failed: grub-install --target=arm64-efi WARNING: Bootloader is not properly installed, system may not be bootable Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.9.0-2-arm64 Found initrd image: /boot/initrd.img-4.9.0-2-arm64 Found linux image: /boot/vmlinuz-4.9.0-0.bpo.2-arm64 Found initrd image: /boot/initrd.img-4.9.0-0.bpo.2-arm64 Found linux image: /boot/vmlinuz-4.8.0-0.bpo.2-arm64 Found initrd image: /boot/initrd.img-4.8.0-0.bpo.2-arm64 Adding boot menu entry for EFI firmware configuration done acker:~# Cheers, -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal https://www.palfrader.org/ | `. `' Operating System | `- https://www.debian.org/ --Kj7319i9nmIyA2yE--