]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(DMSQUASH): add sync after writing the marker
authorNadzeya Hutsko <nadzeya.hutsko@canonical.com>
Mon, 19 Jan 2026 09:59:44 +0000 (10:59 +0100)
committerBenjamin Drung <bdrung@ubuntu.com>
Mon, 19 Jan 2026 13:14:03 +0000 (14:14 +0100)
The change is done to ensure it is flushed to the persist
partition before shutdown.

test/TEST-30-DMSQUASH/assertion.sh

index 23b383aa9a84e03f272cb6ca843eac8db221737e..f54ad5212bb394566a758a1823ee129f4d617067 100755 (executable)
@@ -4,4 +4,6 @@ if grep -qF ' rd.live.overlay=LABEL=persist ' /proc/cmdline; then
     # Writing to a file in the root filesystem lets test_run() verify that the autooverlay module successfully created
     # and formatted the overlay partition and that the dmsquash-live module used it when setting up the rootfs overlay.
     echo "dracut-autooverlay-success" > /overlay-marker
+    # Ensure the marker is flushed to disk before shutdown
+    sync /overlay-marker
 fi