[Bug 2016894] [NEW] grub unrestricted option only applies to default menuentry

James Paton-Smith 2016894 at bugs.launchpad.net
Tue Apr 18 13:55:58 UTC 2023


Public bug reported:

After adding a grub superuser and password, and attempting to set the '
--unrestricted' option for all grub menu entries, I am still prompted
for a username and password when I try to select any menu  entry that
isn't the default 'Ubuntu'

Steps to reproduce:
Create a grub superuser and password
Modify the CLASS variable in /etc/grub.d/10_linux to include the '--unrestricted' option for all entries.
Update grub

What happens (the issue)
/boot/grub/grub.cfg is updated, and I can see that all menu entries include the '--unrestricted' option
Upon reboot, I can boot the default 'Ubuntu' entry without entering a password, but selecting the 'Advanced options for Ubuntu' submenu results in a username/password prompt

What I expect to happen
I should be able to select any grub menu entry and boot from it. The username/password prompt should only show if you try to edit the menu entry or drop to the grub cli

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: grub-common 2.06-2ubuntu7.1
ProcVersionSignature: Ubuntu 5.19.0-38.39~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-38-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 18 14:45:54 2023
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/usr/local/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.grub.d.10_linux: 2023-04-18T14:17:05.597477

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy uec-images wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2016894

Title:
  grub unrestricted option only applies to default menuentry

Status in grub2 package in Ubuntu:
  New

Bug description:
  After adding a grub superuser and password, and attempting to set the
  '--unrestricted' option for all grub menu entries, I am still prompted
  for a username and password when I try to select any menu  entry that
  isn't the default 'Ubuntu'

  Steps to reproduce:
  Create a grub superuser and password
  Modify the CLASS variable in /etc/grub.d/10_linux to include the '--unrestricted' option for all entries.
  Update grub

  What happens (the issue)
  /boot/grub/grub.cfg is updated, and I can see that all menu entries include the '--unrestricted' option
  Upon reboot, I can boot the default 'Ubuntu' entry without entering a password, but selecting the 'Advanced options for Ubuntu' submenu results in a username/password prompt

  What I expect to happen
  I should be able to select any grub menu entry and boot from it. The username/password prompt should only show if you try to edit the menu entry or drop to the grub cli

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: grub-common 2.06-2ubuntu7.1
  ProcVersionSignature: Ubuntu 5.19.0-38.39~22.04.1-generic 5.19.17
  Uname: Linux 5.19.0-38-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.4
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Apr 18 14:45:54 2023
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_GB.UTF-8
   SHELL=/usr/local/bin/bash
  SourcePackage: grub2
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.grub.d.10_linux: 2023-04-18T14:17:05.597477

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2016894/+subscriptions




More information about the foundations-bugs mailing list