[Bug 1886211] Re: Auto-complete for grub-reboot provides invalid options, most of which fail silently

Launchpad Bug Tracker 1886211 at bugs.launchpad.net
Tue Jan 28 21:28:58 UTC 2025


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: grub2 (Ubuntu)
       Status: New => Confirmed

-- 
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/1886211

Title:
  Auto-complete for grub-reboot provides invalid options, most of which
  fail silently

Status in grub2 package in Ubuntu:
  Confirmed

Bug description:
  Hitting tab on `grub-reboot` gives:

  ```
  $ grub-reboot [tab]
  --id
  Advanced options for Ubuntu
  Ubuntu
  Ubuntu, with Linux 4.15.0-108-generic
  Ubuntu, with Linux 4.15.0-108-generic (recovery mode)
  Ubuntu, with Linux 4.15.0-109-generic
  Ubuntu, with Linux 4.15.0-109-generic (recovery mode)
  ```

  But

  ```
  $ grub-reboot --id
  Unrecognized option `--id'
  [...]
  ```

  And the menu items starting with "Ubuntu, with Linux 4.15.0-" are
  actually in the submenu "Advanced options for Ubuntu". So, saying
  `grub-reboot "Ubuntu, with Linux 4.15.0-108-generic", does not have
  the desired effect. One needs to say instead `grub-reboot "Advanced
  options for Ubuntu>Ubuntu, with Linux 4.15.0-108-generic"`.

  Additionally, `grub-reboot` accepts those and other meaningless
  parameters without complaint:

  ```
  $ sudo grub-reboot nonsense && echo success
  success
  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: grub2-common 2.02-2ubuntu8.15
  ProcVersionSignature: User Name 4.15.0-109.110-generic 4.15.18
  Uname: Linux 4.15.0-109-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.15
  Architecture: amd64
  Date: Fri Jul  3 16:35:28 2020
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub2
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list