]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (sfdisk) tell kernel about new partition
authorKarel Zak <kzak@redhat.com>
Fri, 17 Feb 2017 09:28:53 +0000 (10:28 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 17 Feb 2017 09:28:53 +0000 (10:28 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/sfdisk/wipe-partition
tests/ts/sfdisk/wipe

index a73b3997717c729272d58b53fa29162643f2d7e0..62051b262d3e875864771a396498e9b5e42df1b3 100644 (file)
@@ -42,6 +42,8 @@ Device             Start    End Sectors Size Type
 <removed>1   2048 102366  100319  49M Linux filesystem
 
 The partition table has been altered.
+Calling ioctl() to re-read partition table.
+Syncing disks.
 
 =====Check content (disk)================================
 offset               type
index 005fe5b93064ce57346125e777681c674154dbab..feb22b14ff31c24c2d6a303fd3205ffc4ea89a64 100755 (executable)
@@ -89,7 +89,7 @@ ts_separator "Wipe whole-disk device"
 $TS_CMD_WIPEFS -a ${TS_DEVICE} &> /dev/null
 udevadm settle
 ts_separator "Create GPT (again)"
-echo ',,L' | $TS_CMD_SFDISK $SFDISK_OPTS --wipe-partition=always --label=gpt ${TS_DEVICE} >> $TS_OUTPUT 2>&1
+echo ',,L' | $TS_CMD_SFDISK --no-reread --wipe-partition=always --label=gpt ${TS_DEVICE} >> $TS_OUTPUT 2>&1
 udevadm settle
 ts_separator "Check content (disk)"
 $TS_CMD_WIPEFS ${TS_DEVICE} >> $TS_OUTPUT 2>&1