From 31e5c5a54b7e56adb9b583b8d1b0d05a10db0e3c Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 3 Aug 2017 09:10:02 +1000 Subject: [PATCH] made fs-automount not crash the system when running under ocvm --- modules/util/fs-automount.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/util/fs-automount.lua b/modules/util/fs-automount.lua index 69e51bf..b8f1cc0 100644 --- a/modules/util/fs-automount.lua +++ b/modules/util/fs-automount.lua @@ -9,7 +9,7 @@ do fs.mount("boot",component.proxy(c)) print(c:sub(1,8).." mounted as boot") end - if component.invoke(c,"getLabel") ~= "" then + if component.invoke(c,"getLabel") ~= "" and component.invoke(c,"getLabel") ~= nil then fs.mount(component.invoke(c,"getLabel"),component.proxy(c)) print(c:sub(1,8).." mounted as "..component.invoke(c,"getLabel")) end