]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fixes eject/umount on SPARC
authorAnatoly Pugachev <matorola@gmail.com>
Tue, 10 Mar 2020 16:16:01 +0000 (19:16 +0300)
committerAnatoly Pugachev <matorola@gmail.com>
Wed, 11 Mar 2020 14:22:21 +0000 (17:22 +0300)
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>
tests/ts/eject/umount

index 9faab27e61a3724f2d81e4b95f3d23de8c3507a9..00d24c11d319d1aedde7ed441e8c59162ada36b3 100755 (executable)
@@ -35,6 +35,7 @@ function init_partitions {
 
        ts_log "Create partitions"
        $TS_CMD_FDISK $dev >> /dev/null 2>&1 <<EOF
+o
 n
 p
 1