今天升级了archlinux,启动过程中出现了错误:

1
2
/etc/rc.d/functions: line 497: syntax error near unexpected token `<'
/etc/rc.d/functions: line 497: `        done < <(findmnt -runRo TARGET,FSTYPE,OPTIONS / | tac)'

archlinux.org上给出了一个patch

patch的内容如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
--- functions_old       2011-11-19 13:05:47.921522255 +0400
+++ functions   2011-11-19 12:55:17.411565127 +0400
@@ -494,7 +494,7 @@
                fi

                mounts+=("$target")
-       done < <(findmnt -runRo TARGET,FSTYPE,OPTIONS / | tac)
+       done < $(findmnt -runRo TARGET,FSTYPE,OPTIONS / | tac)

        umount -r "${mounts[@]}"

下载patch