[Bug 1990691] [NEW] fdisk colors are not actually enabled by default

Launchpad Bug Tracker 1990691 at bugs.launchpad.net
Fri Sep 23 20:12:47 UTC 2022


You have been subscribed to a public bug:

$ lsb_release -rd
Description:    Ubuntu 22.04.1 LTS
Release:        22.04

$ apt-cache policy fdisk
fdisk:
  Installed: 2.37.2-4ubuntu3
  Candidate: 2.37.2-4ubuntu3
  Version table:
 *** 2.37.2-4ubuntu3 500
        500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

# Expected behavior

`fdisk -l`'s output should have colors other than white and black.
Otherwise, `fdisk --help` should not say that colors are enabled by default.

https://unix.stackexchange.com/a/385973/524752 says that /etc/terminal-
colors.d/fdisk.scheme should exist, but it is missing from `dpkg-query
-L fdisk | grep /etc/terminal-colors.d/fdisk.scheme`.

# Actual behavior

`fdisk -l` shows a list of partitions without color.

$ fdisk --help | grep color
 -L, --color[=<when>]          colorize output (auto, always or never)
                                 colors are ___enabled___ by default
(emphasis mine)

$ dpkg-query -L fdisk | grep /etc/terminal-colors.d/fdisk.scheme
$ # no output
$ cat /etc/terminal-colors.d/fdisk.scheme
cat: /etc/terminal-colors.d/fdisk.scheme: No such file or directory

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
fdisk colors are not actually enabled by default
https://bugs.launchpad.net/bugs/1990691
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to util-linux in Ubuntu.



More information about the foundations-bugs mailing list