made fs-automount cope with non-fs boot devices better

This commit is contained in:
Izaya 2017-09-04 20:43:26 +10:00
parent 1e3d4eddac
commit 437f65e0dc

View File

@ -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()