cvs commit: src/sys/boot/common Makefile.inc bootstrap.h commands.c interp.c interp_forth.c load.c load_elf.c ls.c module.c pnp.c rel_open.c src/sys/boot/ficl loader.c src/sys/boot/forth beastie.4th loader-bootp.conf loader.4th loader.conf loader.rc ...
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Sep 2 10:22:25 PDT 2008
dillon 2008/09/02 10:21:18 PDT
DragonFly src repository
Modified files:
sys/boot/common Makefile.inc bootstrap.h commands.c
interp.c interp_forth.c load.c load_elf.c
ls.c module.c pnp.c
sys/boot/ficl loader.c
sys/boot/forth beastie.4th loader-bootp.conf loader.4th
loader.conf loader.rc
sys/boot/pc32 Makefile
sys/boot/pc32/boot2 boot2.c
sys/boot/pc32/loader loader.rc
Added files:
sys/boot/common rel_open.c
Log:
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".
Revision Changes Path
1.5 +1 -1 src/sys/boot/common/Makefile.inc
1.4 +2 -0 src/sys/boot/common/bootstrap.h
1.4 +2 -2 src/sys/boot/common/commands.c
1.4 +11 -3 src/sys/boot/common/interp.c
1.5 +1 -1 src/sys/boot/common/interp_forth.c
1.4 +2 -2 src/sys/boot/common/load.c
1.7 +1 -1 src/sys/boot/common/load_elf.c
1.5 +1 -1 src/sys/boot/common/ls.c
1.6 +2 -2 src/sys/boot/common/module.c
1.4 +1 -1 src/sys/boot/common/pnp.c
1.7 +1 -1 src/sys/boot/ficl/loader.c
1.9 +2 -2 src/sys/boot/forth/beastie.4th
1.27 +4 -5 src/sys/boot/forth/loader-bootp.conf
1.9 +5 -5 src/sys/boot/forth/loader.4th
1.34 +2 -2 src/sys/boot/forth/loader.conf
1.4 +1 -1 src/sys/boot/forth/loader.rc
1.5 +2 -1 src/sys/boot/pc32/Makefile
1.17 +7 -2 src/sys/boot/pc32/boot2/boot2.c
1.2 +2 -2 src/sys/boot/pc32/loader/loader.rc
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/Makefile.inc.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/bootstrap.h.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/commands.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/interp.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/interp_forth.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/load.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/load_elf.c.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/ls.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/module.c.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/common/pnp.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/ficl/loader.c.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/forth/beastie.4th.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/forth/loader-bootp.conf.diff?r1=1.26&r2=1.27&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/forth/loader.4th.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/forth/loader.conf.diff?r1=1.33&r2=1.34&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/forth/loader.rc.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/pc32/Makefile.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/pc32/boot2/boot2.c.diff?r1=1.16&r2=1.17&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/boot/pc32/loader/loader.rc.diff?r1=1.1&r2=1.2&f=u
More information about the Commits
mailing list