[Bug 1900346] [NEW] Error respose gets lost in a pipeline
Kevin O'Gorman
1900346 at bugs.launchpad.net
Sun Oct 18 18:40:43 UTC 2020
Public bug reported:
I'm using parted's "print" command in a pipeline in a script. This
usually works well, but I just had an instance of the error
Error: The backup GPT table is corrupt, but the primary appears OK, so
that will be used.
This should be followed by the confirmation line "OK/Cancel?" but it
lacks a newline and the pipeline retains it in a buffer, so the user
sees nothing.
So consider this a few feature requests:
- Since the message says the primary "will be used", just go ahead and do that.
- provide options to assume "OK' or to assume "cancel".
- provide a command to repair the broken GPT table with the good one.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: parted 3.3-4
ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sun Oct 18 11:35:48 2020
InstallationDate: Installed on 2020-09-19 (29 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: parted
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: parted (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/1900346
Title:
Error respose gets lost in a pipeline
Status in parted package in Ubuntu:
New
Bug description:
I'm using parted's "print" command in a pipeline in a script. This
usually works well, but I just had an instance of the error
Error: The backup GPT table is corrupt, but the primary appears OK, so
that will be used.
This should be followed by the confirmation line "OK/Cancel?" but it
lacks a newline and the pipeline retains it in a buffer, so the user
sees nothing.
So consider this a few feature requests:
- Since the message says the primary "will be used", just go ahead and do that.
- provide options to assume "OK' or to assume "cancel".
- provide a command to repair the broken GPT table with the good one.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: parted 3.3-4
ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sun Oct 18 11:35:48 2020
InstallationDate: Installed on 2020-09-19 (29 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: parted
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1900346/+subscriptions
More information about the foundations-bugs
mailing list