Differences between version 2 and previous revision of KnowledgeBase/FreeBSD/BootStrap.
Other diffs: Previous Major Revision, Previous Author
Newer page: | version 2 | Last edited on Tuesday, 31 August 2010 1:37:37 | by CyberLeo | Revert |
Older page: | version 1 | Last edited on Tuesday, 31 August 2010 1:34:22 | by CyberLeo | Revert |
@@ -2,26 +2,47 @@
!!! Boot Setup
!! Regular
+
/boot/loader.conf
-*
loader_logo="beastie"
-*
kernel="GENERIC"
-*
opensolaris_load="YES" (if zfs root)
-*
zfs_load="YES" (if zfs root)
+<code brush="bash"
+
loader_logo="beastie"
+kernel="GENERIC"
+opensolaris_load="YES" (if zfs root)
+zfs_load="YES" (if zfs root)
+</code>
!! Tweaks if /boot is its own partition
+
+<code brush="bash">
+# Boot scripts are hardcoded to look in /boot so make sure they can find everything
+# Have to move the bootcode out of the way for this to work, though
+cd /path/to/new/boot && mv boot boot.blk && ln -svf . boot
+</code>
+
/boot/boot.config
-*
/loader
+<code brush="bash">
+
/loader
+</code>
+
/boot/loader.conf
-*
vfs.root.mountfrom="ufs:/dev/ufs/root"
-*
vfs.root.mountfrom="zfs:zpool/filesystem" (if zfs root)
+<code brush="bash">
+
vfs.root.mountfrom="ufs:/dev/ufs/root"
+vfs.root.mountfrom="zfs:zpool/filesystem" (if zfs root)
+</code>
!! Tweaks if using serial console
+
/boot/boot.config
-*
-h -S115200
-*
/loader -h -S115200 (if /boot is its own partition)
+<code brush="bash">
+
-h -S115200
+/loader -h -S115200 (if /boot is its own partition)
+</code>
+
/boot/loader.conf
-*
console="comconsole,vidconsole" (or just comconsole, if there is no useful video hardware)
-*
comconsole_speed="115200"
-*
boot_multicons="YES" (pass -D to kenv (boot -D))
-*
boot_serial="YES" (pass -h to kenv (boot -h))
+<code brush="bash">
+
console="comconsole,vidconsole" (or just comconsole, if there is no useful video hardware)
+comconsole_speed="115200"
+boot_multicons="YES" (pass -D to kenv (boot -D))
+boot_serial="YES" (pass -h to kenv (boot -h))
+</code>
version 2
Things to remember when bootstrapping a fresh install of FreeBSD outside of sysinstall
Boot Setup
Regular
/boot/loader.conf
loader_logo="beastie" kernel="GENERIC" opensolaris_load="YES" (if zfs root) zfs_load="YES" (if zfs root)
Tweaks if /boot is its own partition
# Boot scripts are hardcoded to look in /boot so make sure they can find everything # Have to move the bootcode out of the way for this to work, though cd /path/to/new/boot && mv boot boot.blk && ln -svf . boot
/boot/boot.config
/loader
/boot/loader.conf
vfs.root.mountfrom="ufs:/dev/ufs/root" vfs.root.mountfrom="zfs:zpool/filesystem" (if zfs root)
Tweaks if using serial console
/boot/boot.config
-h -S115200 /loader -h -S115200 (if /boot is its own partition)
/boot/loader.conf
console="comconsole,vidconsole" (or just comconsole, if there is no useful video hardware) comconsole_speed="115200" boot_multicons="YES" (pass -D to kenv (boot -D)) boot_serial="YES" (pass -h to kenv (boot -h))