]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-01-BASIC: sync after creating the root disk
authorHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 09:51:26 +0000 (11:51 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 09:51:26 +0000 (11:51 +0200)
test/TEST-01-BASIC/create-root.sh
test/TEST-01-BASIC/test.sh

index 0e91ab5465f076734fc3c0912c5548ed478e13b2..046bfb9cd80c4a47d15bcef7c099cf4425346aeb 100755 (executable)
@@ -19,5 +19,6 @@ cp -a -t /root /source/*
 mkdir -p /root/run
 umount /root
 echo "dracut-root-block-created" >/dev/sda1
+sync
 poweroff -f
 
index 36d269396c2b7f84a33705c7dcf0163bf771f2e6..46e75c7aa3b6b5f797f2fd08b3e81f707fe97422 100755 (executable)
@@ -48,7 +48,7 @@ test_setup() {
     (
        initdir=$TESTDIR/overlay
        . $basedir/dracut-functions.sh
-       dracut_install sfdisk mkfs.ext3 poweroff cp umount
+       dracut_install sfdisk mkfs.ext3 poweroff cp umount sync
        inst_hook initqueue 01 ./create-root.sh
        inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
     )