From: Frantisek Sumsal Date: Wed, 13 Mar 2019 09:07:44 +0000 (+0100) Subject: test: avoid double-fsck'ing of the rootfs on Arch X-Git-Tag: v242-rc1~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ae4456c93384191b2cc884fdc7542c8c869cdca;p=thirdparty%2Fsystemd.git test: avoid double-fsck'ing of the rootfs on Arch Since systemd 206 the combination of systemd and mkinitcpio causes, under certain conditions, the rootfs to be double fsck'd. Symptoms: ``` :: performing fsck on '/dev/sda1' systemd: clean, 3523/125488 files, 141738/501760 blocks ********************** WARNING ********************** * * * The root device is not configured to be mounted * * read-write! It may be fsck'd again later. * * * ***************************************************** [ OK ] Started File System Check on Root Device ``` This occurs when neither 'ro' or 'rw', or only 'ro' is present on the kernel command line. The solution is to mount the roofs as read-write on the kernel command line, so systemd knows to not fsck it again. --- diff --git a/test/test-functions b/test/test-functions index 2f88be058b3..cd8175117bf 100644 --- a/test/test-functions +++ b/test/test-functions @@ -161,6 +161,8 @@ run_qemu() { if [[ "$LOOKS_LIKE_SUSE" ]]; then PARAMS+="rd.hostonly=0" +elif [[ "$LOOKS_LIKE_ARCH" ]]; then + PARAMS+="rw" else PARAMS+="ro" fi