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

Skia 1886211 at bugs.launchpad.net
Thu Jan 30 10:21:48 UTC 2025


This can still be reproduced on Plucky (bash completion is likely
completely broken). I'm not sure if this is worth SRUing back to bionic,
but might be good to fix at least in devel.

** Tags added: rls-pp-incoming

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