tests: fixes blkid/md-raidX-whole on Sparc
Since SPARC is using 'sun' partition table by default, make test not to assume that disk has 'dos' partition table, so write 'dos' partition table on disk, before proceeding any further. Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
This commit is contained in:
parent
b2a1a69155
commit
a43665128c
|
@ -6,8 +6,6 @@ Welcome to fdisk <removed>.
|
|||
Changes will remain in memory only, until you decide to write them.
|
||||
Be careful before using the write command.
|
||||
|
||||
Device does not contain a recognized partition table.
|
||||
Created a new <removed>.
|
||||
|
||||
Command (m for help): Partition type
|
||||
p primary (0 primary, 0 extended, 4 free)
|
||||
|
|
|
@ -6,8 +6,6 @@ Welcome to fdisk <removed>.
|
|||
Changes will remain in memory only, until you decide to write them.
|
||||
Be careful before using the write command.
|
||||
|
||||
Device does not contain a recognized partition table.
|
||||
Created a new <removed>.
|
||||
|
||||
Command (m for help): Partition type
|
||||
p primary (0 primary, 0 extended, 4 free)
|
||||
|
|
|
@ -48,6 +48,13 @@ ts_log "Create RAID device"
|
|||
mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 --level=0 \
|
||||
--raid-devices=2 ${DEVICE1} ${DEVICE2} >> $TS_OUTPUT 2>> $TS_ERRLOG
|
||||
|
||||
# create dos partition table
|
||||
$TS_CMD_FDISK ${MD_DEVICE} &>/dev/null <<EOF
|
||||
o
|
||||
w
|
||||
q
|
||||
EOF
|
||||
|
||||
ts_log "Create partitions on RAID device"
|
||||
$TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>> $TS_ERRLOG <<EOF
|
||||
n
|
||||
|
|
|
@ -51,6 +51,13 @@ mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 --level=1 \
|
|||
--raid-devices=2 ${DEVICE1} ${DEVICE2} >> $TS_OUTPUT 2>> $TS_ERRLOG
|
||||
udevadm settle
|
||||
|
||||
# create dos partition table
|
||||
$TS_CMD_FDISK ${MD_DEVICE} &>/dev/null <<EOF
|
||||
o
|
||||
w
|
||||
q
|
||||
EOF
|
||||
|
||||
ts_log "Create partitions on RAID device"
|
||||
$TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>> $TS_ERRLOG <<EOF
|
||||
n
|
||||
|
|
Loading…
Reference in New Issue