Open jelly opened 2 months ago
For debugging udevadm events:
diff --git a/test/verify/check-storage-swap b/test/verify/check-storage-swap
index 3fa8e9aaa..85043a432 100755
--- a/test/verify/check-storage-swap
+++ b/test/verify/check-storage-swap
@@ -86,6 +86,7 @@ class TestStorageswap(storagelib.StorageCase):
# Format as swap on the command line, starting it should add
# fstab entry
+ m.spawn("udevadm monitor", "udev.log")
m.execute(f"mkswap -f {disk}")
b.click(self.card_button("Swap", "Start"))
b.wait_text(self.card_desc("Swap", "Used"), "0 B")
Explain what happens
TestStorageswap.testBasic -vst
in a loopnotice it fails in ~ 10 retries.
Findings
The page should start swap but instead of shows a disk without any swap partition.
mkswap -f
did not run but if you ask udisks, you will noticeIdType
is empty.You can
swapon /dev/sda
so the swap partition is perfectly fine. So this is udev or udisks:Clearly shows it is udev not picking up the change, after
udevadm trigger
:udev events:
Calling
mkswap -f
again: