Error respose gets lost in a pipeline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
parted (Ubuntu) |
New
|
Undecided
|
Unassigned |
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
ProcVersionSign
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
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)