bootable/newinstaller
Revisión | aeab2b64c2be18f8c71fff72b64a62e553ceddba (tree) |
---|---|
Tiempo | 2018-07-19 11:46:47 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Fix NFS mounting
Commit d9dfce00 determined fs type by blkid, but it didn't consider
the NFS case. The patch handles the case directly.
Fixes: d9dfce00 ("init: try to mount according to filesystem type")
@@ -65,7 +65,8 @@ try_mount() | ||
65 | 65 | RW=$1; shift |
66 | 66 | if [ "${ROOT#*:/}" != "$ROOT" ]; then |
67 | 67 | # for NFS roots, use nolock to avoid dependency to portmapper |
68 | - RW="nolock,$RW" | |
68 | + mount -o $RW,noatime,nolock $@ | |
69 | + return $? | |
69 | 70 | fi |
70 | 71 | case $(blkid $1) in |
71 | 72 | *TYPE=*ntfs*) |