made fs-automount mount /tmp as /boot if the system boots from a tape drive.

This commit is contained in:
Izaya 2017-08-03 19:37:04 +10:00
parent 30dc60c79a
commit b1e40cbdb3
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
do
local C=0
if component.type(computer.getBootAddress()) == "tape_drive" then
fs.mount("boot",computer.tmpAddress())
print(computer.tmpAddress():sub(1,8).." mounted as boot")
end
for c in component.list("filesystem") do
if c == computer.tmpAddress() then
fs.mount("tmp",component.proxy(c))