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)) print(c:sub(1,8).." mounted as fs"..string.format("%02d",C))
C=C+1 C=C+1
end end
if component.type(computer.getBootAddress()) == "tape_drive" then if component.type(computer.getBootAddress()) ~= "filesystem" then
fs.mount("boot",component.proxy(computer.tmpAddress())) fs.mount("boot",component.proxy(computer.tmpAddress()))
print(computer.tmpAddress():sub(1,8).." mounted as boot") print(computer.tmpAddress():sub(1,8).." mounted as boot")
end
if component.type(computer.getBootAddress()) == "tape_drive" then
if tape then if tape then
tape.rewind() tape.rewind()
local pt = tape.records() local pt = tape.records()