Bug 219982 - Parted script option - just started asking user to confirm mklabel
Summary: Parted script option - just started asking user to confirm mklabel
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: parted
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-18 02:28 UTC by Karl Auerbach
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-14 21:26:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karl Auerbach 2006-12-18 02:28:07 UTC
Description of problem:

Previously when parted was run with --script it took the script and did it
without asking the user.


With the recent version (parted-1.8.1-1.fc5) even when --script is given when a
mklabel command is given it asks the user to confirm.

This breaks scripts that don't expect to feed confirmations to parted.

Version-Release number of selected component (if applicable):
parted-1.8.1-1.fc5

How reproducible:

Always

Steps to Reproduce:
1. Put a compact flash into a USB based CF reader/writer

2. Run:

FLASH_DEV=/dev/sdc

# Partition sizes on the compact flash (in megabytes)
BOOT_PART_SIZE=16
ROOT_PART_SIZE=72
echo "Creating partitions"
sudo parted --script ${FLASH_DEV} \
    mklabel msdos \
    mkpart primary ext2 0.0 ${BOOT_PART_SIZE}.0 \
    mkpart primary ext2 ${BOOT_PART_SIZE} `expr \${BOOT_PART_SIZE} +
\${ROOT_PART_SIZE}` \
    set 1 boot on

And rather than the script running (like it used to do) it now emits:

Warning: The existing disk label on /dev/sdc will be destroyed and all data on
this disk will be lost. Do you want to continue?

Actual results:

Disk partioning fails.

Expected results:

Successful disk partitioning.

Additional info:

I reverted back to parted-1.6.25-8 and my scripts started working again.

I also saw some hints that the new parted update contained some strange,
different (perhaps wrong) geometry information when dealing with compact flash
devices.

Comment 1 David Cantrell 2007-08-14 21:26:26 UTC
This should be working in Fedora development now ("rawhide").


Note You need to log in before you can comment on or make changes to this bug.