Thank you. Is fdisk present in the rhel7 installer?


On Mon, May 19, 2014 at 11:34 PM, Stijn De Weirdt
<notifications@github.com>wrote:

> In aii-ks/src/main/perl/ks.pm:
>
> > @@ -459,10 +459,10 @@ wipe_metadata () {
> >      path="$1"
> >      clear="$2"
> >
> > -    SIZE=`fdisk -s "$path"`
> > -    let START=$SIZE/1024-$clear
> > -    dd if=/dev/zero of="$path" bs=1M count=$clear 2>/dev/null
> > -    dd if=/dev/zero of="$path" bs=1M seek=$START 2>/dev/null
> > +    SIZE=`fdisk -lu "$path" |grep total|grep sectors|awk -F ' ' '{print $8}'`
>
> this seems to work
>
> parted $path -s -- u s p | grep "Disk $path" |awk '{print substr($3, 0, length($3)-1)}'
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/quattor/aii/pull/61/files#r12820108>
> .
>