Adjust the boot code to boot from either a root with a /boot, or directly
from a /boot partition (which will look like '/' to the loader).
These changes allow you to make your 'a' partition a /boot only partition.
Your /boot/loader.conf would then have a directive to tell the kernel where
the root partition is, e.g.:
vfs.root.mountfrom="hammer:${disk}s1d"
* Add a chdir() hack and rel_open() that uses the chdir base.
* chdir("/boot")... if it exists.
* Change all config and most other paths to be relative
* boot2 does not have access to the chdir() hack. Adjust boot2 to look
for the loader as both "/loader" and "/boot/loader".
20 files changed: