boot: make use of kmodloader if it is available
[openwrt.git] / package / base-files / files / lib / preinit / 10_check_for_mtd
index e1f3c07..6a7bd30 100644 (file)
@@ -5,12 +5,12 @@
 
 mount_no_mtd() {
     mtd unlock rootfs
-    mount -o remount,rw /dev/root /
+    mount -o noatime,remount,rw /dev/root /
 }
 
 check_for_mtd() {
     check_skip || {
-       grep rootfs_data /proc/mtd >/dev/null 2>/dev/null || {
+       grep -qs rootfs_data /proc/mtd || {
            mount_no_mtd && pi_mount_skip_next=true
        }
     }