FOGProject/fos

db_root: can not open: /etc/target in FOS boot

Closed this issue · 3 comments

A couple of people have noticed the message db_root: can not open: /etc/target when booting up clients in FOS environment. Not sure when this came into play, what is causing it and if it is doing any harm. So far we don't have any reports for this being a real problem.

Still I think we should look into it and figure out where it is coming from.

Quazz commented

Looks like this is introduced between kernel 4.17.0 and 4.18.3

Some quick googling suggests this has to do with SCSI:

scsi: target: prefer dbroot of /etc/target over /var/target

So it looks like they just switched their folder locations around, but it throws an error when the new preferred target doesn't exist.

As this has been asked a couple of times in the forums now I though I might look into this.

It’s kind of strange that I still get the error even if I add that directory to the init file. I have had a look a the kernel code and can’t see why this fails. Possibly it’s because our root is not on a disk but in RAM? I am not sure. Shouldn’t make a difference really.

Then I had a closer look at which part of the kernel that is. It’s within the SCSI target driver. See more information about it here: https://lwn.net/Articles/424004/ and https://en.wikipedia.org/wiki/LIO_(SCSI_target)

I can’t imagine anyone would need this within the FOS system at all. We might just remove CONFIG_TARGET_CORE from our kernel config and that’s it. Tom and George agreed to the idea in a forum post.

I am in the process of building and testing. Will push a changed kernel config soon.