[Parted-maintainers] Bug#753573: parted: please allow to read script commands from stdin or a file

Enrico Zini enrico at debian.org
Thu Jul 3 08:31:02 UTC 2014


Package: parted
Version: 2.3-20
Severity: wishlist

Hello,

thank you for packaging parted.

I currently have this in a deploy script:

  DISK=`find_disk`
  while read -r cmd; do parted -s -a optimal $DISK $cmd; done < commands.txt

that while loop works around parted only accepting script commands on
the command line. I wish I could do this:

  DISK=`find_disk`
  parted -s -a optimal $DISK read commands.txt

or this:

  DISK=`find_disk`
  compute_parted_commands | parted -s -a optimal $DISK read -

I understand that running each command in its own invocation makes it
possible to know which command exactly failed. In my case, though, I
work on an all-or-nothing situation: either the disk ends up partitioned
how we need it, or the installation procedure alarms[1] and halts.


Enrico

[1] it really does: it even plays a morse code SOS on the PC speaker :)

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages parted depends on:
ii  libc6              2.19-4
ii  libparted0debian1  2.3-20
ii  libreadline6       6.3-6
ii  libtinfo5          5.9+20140118-1

parted recommends no packages.

Versions of packages parted suggests:
pn  parted-doc  <none>

-- no debconf information



More information about the Parted-maintainers mailing list