From 437f65e0dcb546d0d5648a49eb26eb9e3014d7a4 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 4 Sep 2017 20:43:26 +1000 Subject: [PATCH] made fs-automount cope with non-fs boot devices better --- modules/util/fs-automount.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/util/fs-automount.lua b/modules/util/fs-automount.lua index 28be868..2af3640 100644 --- a/modules/util/fs-automount.lua +++ b/modules/util/fs-automount.lua @@ -17,9 +17,11 @@ do print(c:sub(1,8).." mounted as fs"..string.format("%02d",C)) C=C+1 end - if component.type(computer.getBootAddress()) == "tape_drive" then + if component.type(computer.getBootAddress()) ~= "filesystem" then fs.mount("boot",component.proxy(computer.tmpAddress())) print(computer.tmpAddress():sub(1,8).." mounted as boot") + end + if component.type(computer.getBootAddress()) == "tape_drive" then if tape then tape.rewind() local pt = tape.records()