You are not logged in.

#21 2018-03-17 00:27:26

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Acer Travelmate x349 + nvme + grub

johnraff wrote:
Head_on_a_Stick wrote:
johnraff wrote:

silly Debian

I've obviously ruffled your feathers here but please go back and read what I actually posted

I read what you posted before you deleted it. There's no secrecy on the internet.

The edited text constitutes my "official" position.

Offline

#22 2018-03-17 00:46:52

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,668
Website

Re: Acer Travelmate x349 + nvme + grub

cool

Anyway, the issue does appear to have been fixed in Debian Stretch onwards. See the changelog (snippet)

grub-common wrote:

grub2 (2.02~beta2-27) unstable; urgency=medium

  [ Mathieu Trudel-Lapierre ]
  * debian/patches/uefi_firmware_setup.patch: Take into account that the
    UEFI variable OsIndicationsSupported is a bit field, and as such should
    be compared as hex values in 30_uefi-firmware.in. (LP: #1456911)

-- Colin Watson <cjwatson@debian.org>  Fri, 04 Sep 2015 12:35:59 +0100

It references the same LaunchPad bug that HoaS posted earlier, but applies a different patch:
%x → 0x%x
instead of
%x → %d

The easiest solution is to install BunsenLabs Helium IMO, since the newer kernel will likely bring other improvements.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#23 2018-03-17 09:40:35

Bury
Member
Registered: 2016-05-27
Posts: 17

Re: Acer Travelmate x349 + nvme + grub

johnraff wrote:

@Bury, I wonder if you could post the result of cat /etc/grub.d/30_uefi-firmware
(If you're installing BunsenLabs Deuterium then the newer Helium alpha iso might possibly work.)

Yes, I installing BunsenLabs Deuterium and patiently waiting for Helium wink
Sure, no problem wink

#! /bin/sh
set -e

# grub-mkconfig helper script.
# Copyright (C) 2012  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.

prefix="/usr"
exec_prefix="/usr"
datarootdir="/usr/share"

export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"

. "${datarootdir}/grub/grub-mkconfig_lib"

efi_vars_dir=/sys/firmware/efi/vars
EFI_GLOBAL_VARIABLE=8be4df61-93ca-11d2-aa0d-00e098032b8c
OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data"

if [ -e "$OsIndications" ] && \
   [ "$(( $(printf %x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then
  LABEL="System setup"

  gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2

  onstr="$(gettext_printf "(on %s)" "${DEVICE}")"

  cat << EOF
menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
	fwsetup
}
EOF
fi

Offline

#24 2018-03-17 10:13:24

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Acer Travelmate x349 + nvme + grub

We don't need that fwsetup entry at all so just use this for now:

sudo chmod -x /etc/grub.d/30_uefi-firmware

^ That will disable the file and allow `update-grub` to work.

EDIT: am I the only one who thinks there should be more curly brackets (to protect the quoting) in that GRUB script?

Last edited by Head_on_a_Stick (2018-03-17 12:26:09)

Offline

Board footer

Powered by FluxBB