Hello, I am attempting to build Haiku under Gentoo GNU/Linux, direct to partition. That is, /dev/hda14 has permissions set to allow me to write to it, and UserBuildConfig is as below. However, when GRUB comes to boot from the partition it says that it can’t load the image. The command jam @disk mount is able to view the partition, but it shows one top-level directory myfs, under which are apps, common, develop, home, optional, system and var. Surely those sub-directories should actually be in the root, and there should not be the directory myfs ?
As Matt says, you’ve got a huge mix of redundant info there…
You should start with the “DefineBuildProfile” line, and nothing more!
When building, you should build with jam -q @disk and make sure there are no errors
when using the “mount” action, myfs is indeed what replaces the /boot subfolder, and I believe the list of directories you’ve got are correct.
Hopefully you’re not attempting to any funny tricks with makebootable, as build directly to the partition should handle that.
Once you get a successful build to your partition, I highly suggest you take some time to understand what all the other stuff you added to your UserBuildConfig is doing - the extra use of variables, and switch logic redundantly specifying which optional packages is pretty much overkill.
Often times I end up with a UserBuildConfig that has no more than 3 or 4 lines.
Creating image …
Error: Failed to open “/dev/hda”: Permission denied
Populating image …
Deleting old MIME database …
Installing MIME database …
Unmounting …
…updated 1632 target(s)…
Is that /dev/hda error a clue ? Surely only the partition itself should be needed ? Why does it want to write the entire disk ? Still the same result though. The partition is unbootable. Any ideas where to look next ?