Error respose gets lost in a pipeline

Bug #1900346 reported by Kevin O'Gorman
6
This bug affects 1 person
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
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)

Revision history for this message
Kevin O'Gorman (kogorman-pacbell) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.