Own Install CD with custom kernel
Matthias Fechner
idefix at fechner.net
Sun Sep 16 02:41:39 PDT 2007
Hi,
I'm working currently on a custom FreeBSD install CD with included I4B.
But I have my problems and every try takes about 8 hours to rebuild
the CDs again so hopefully I'll get some help here to speed it up a
little :)
What I did:
Prepared my environment like (checkout cvs, copy files, created patch
etc. - default FreeBSD CD builds fine)
It seems that sysinstall will not install per default the new kernel.
For a non SMP system (like mine) it is I4B.
So it seems to me that I must change /usr/src/usr.sbin/sysinstall to
do this. I attached the patch to this email.
cd /usr/src/release
make release CHROOTDIR=/home/storage/ownfreebsd BUILDNAME=FreeBSD-I4B \
CVSROOT=/home/storage/ncvs RELEASETAG=RELENG_6 MAKE_ISOS=1 \
KERNEL_FLAGS=-j4 WORLD_FLAGS=-j4 \
LOCAL_PATCHES=/root/patch.diff PATCH_FLAGS=-p1 \
KERNELS="I4B I4BSMP GENERIC SMP" |tee /root/build.log
Then I execute the make release command and some hours later I got all
the ISO I need to install my new system.
Ok so far so good. Now I booted with the new created ISO and try to
install from it. I checked if the right kernel is select in the
distribution selection and yes that is fine.
But at the installation itself it seems that sysinstall is not copying
the kernel to the right place. I got the following message (debugging
messages in sysinstall are enabled):
DEBUG: installFixupKernel: Install I4B kernel
DEBUG: Executing command 'mv /boot/I4B /boot/kernel'
mv: rename /boot/I4B to /boot/kernel: No such file or directory
DEBUG: Command 'mv /boot/I4B /boot/kernel' ressturns status of 1
I checked now the the installed system and there is absolutly no kernel
installed. (no /boot/GENERIC, no /boot/I4B or anything else)
I'm sure that I must oversaw something in sysinstall to change but I
cannot find it.
What must I change now that sysinstall install my custom kernel?
Thx a lot for help!
Best regards,
Matthias
--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysinstall_kernel_I4B.diff
Type: text/x-diff
Size: 4656 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070916/3bf99a23/sysinstall_kernel_I4B.bin
More information about the freebsd-questions
mailing list