Do I need Poudriere to do that?Yes and I bake in kld_list=i915kms to rc.conf so it works oob.
I use Poudriere to generate my MFS images.
Sure as long as you can install packages inside your mfsroot image.Can't I just have a standalone script?
mfsBSD scripts include installing packages and adding configuration files to the image.Do I need Poudriere to do that?
Can't I just have a standalone script?
drm-61-kmod
gpu-firmware-intel-kmod
hostname="example.home"
keymap="uk"
sshd_enable="YES"
kld_list="i915kms"
Yes, it's possible. 15.0 support was added on Jan. 3 2026:Is it possible to build mfsBSD based on 15.0 yet?
git pull in an existing local repository, or checkout into a new directory.mfsbsd # ls -1 mfsbsd-15.0-RELEASE-p1-amd64.i*
mfsbsd-15.0-RELEASE-p1-amd64.img
mfsbsd-15.0-RELEASE-p1-amd64.iso
# sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 1g -d mfsbsd-15.0-RELEASE-p1-amd64.img mfsbsd
# sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 1g -i -I mfsbsd-15.0-RELEASE-p1-amd64.iso mfsbsd
bhyvectl --destroy --vm=mfsbsd ps aux | grep cu, then kill(1) first "cu" PID.I have managed to build 15.0, but haven't yet succeeded in adding my customisations.mfsBSD scripts include installing packages and adding configuration files to the image.
Here an example for the "i915kms" driver:
Create custom MFSBSDROOTDIR/tools/packages.sample file
This will download listed packages and install them in the "work" directory to be included in the image. If you like, additional packages can be added, see original MFSBSDROOTDIR/tools/packages.sample file for default packages.Code:drm-61-kmod gpu-firmware-intel-kmod
To configure the driver so that it is loaded at system startup, create MFSBSDROOTDIR/customfiles/etc/rc.conf. While at it, set additional configuration:
Code:hostname="example.home" keymap="uk" sshd_enable="YES" kld_list="i915kms"
If you are thinking of adding/editing files and installing packages in the mounted mfsBSD image, this is not possible. The root file system in mfsBSD is a gziped archive, which on image boot is unziped and loaded into RAM. Any customization must be configured before the image is build.
- mdconfig -a -t vnode -f mfsbsd.img
- mount /dev/mdXp2 /mnt (adjust partition as needed)
# ls -F /mnt/mfsbsd-img/
boot/ boot.conf mfsroot.gz
# file /mnt/mfsbsd-img/mfsroot.gz
/mnt/mfsbsd-img/mfsroot.gz: gzip compressed data, was "mfsroot", last modified: Tue Jan 13 08:51:08 2026, max compression, from Unix, original size modulo 2^32 156729344
I just ran a test build, packages and configurations are in their places.I have managed to build 15.0, but haven't yet succeeded in adding my customisations.
Have you renamed original MFSBSDROOTDIR/tools/packages.sample and created a custom MFSBSDROOTDIR/tools/packages.sample file with the packages you want installed as shown in post # 6?Do I need to copy the *.sample files and make changes there?
Also the changes I wanted in /etc/rc.conf didn't appear.
MFSROOT_MAXSIZE?= has a adequate size, if necessary.I just ran a test build, packages and configurations are in their places.
Have you renamed original MFSBSDROOTDIR/tools/packages.sample and created a custom MFSBSDROOTDIR/tools/packages.sample file with the packages you want installed as shown in post # 6?
Is this a new directory?Have you create a MFSBSDROOTDIR/customfiles/etc/ directory and placed the edited rc.conf file underneath?
Check also for typos in the created directoreis and file names.
Make sure MFSBSDROOTDIR/MakefileMFSROOT_MAXSIZE?=has a adequate size, if necessary.
Yes, exactly. Rename (or remove) original MFSBSDROOTDIR/tools/packages.sample and create a new file instead of the original, with the same name packages.sample.I don't follow this. By rename you just mean save as backup, but the actual filenames should remain as *.sample?
Have you create a MFSBSDROOTDIR/customfiles/etc/ directory and placed the edited rc.conf file underneath?
Yes, it is a new directory in the mfsBSD root directory:Is this a new directory?
mfsbsd # mkdir -p customfiles/etc
mfsbsd # ee customfiles/etc/rc.conf
I forgot about those files in the MFSBSDROOTDIR/conf directory.I see a MFSBSDROOTDIR/conf which includes a rc.conf.sample. Shouldn't I edit that?
mfsBSD provides a handy way of getting access to your system. It's pretty small and I always have an additional rescue partition with mfsBSD installed on it.I'm not entirely sure what you are trying to achieve here.
mfsBSD is mainly intended to be an intermediate step for installing FreeBSD e.g. in hosting environments where only linux based images and rescue systems are available. You then dd the mfsBSD image to disk, boot it and then launch the actual FreeBSD setup from this *temporary* mfsBSD environment.
mfsBSD is not some kind of 'live image' and/or for desktop usage.
Jan 13 08:07:06 mfsbsdjp login[1736]: ROOT LOGIN (root) ON ttyv0
Jan 13 11:30:52 mfsbsdjp kernel: KLD drm.ko: depends on iic - not available or version mismatch
Jan 13 11:30:52 mfsbsdjp kernel: linker_load_file: /boot/modules/drm.ko - unsupported file type
Jan 13 11:30:52 mfsbsdjp kernel: KLD i915kms.ko: depends on drmn - not available or version mismatch
Jan 13 11:30:52 mfsbsdjp kernel: linker_load_file: /boot/modules/i915kms.ko - unsupported file type
MFSBSDROOTDIR/conf/rc.conf doesn't work as expected in my setup. Some variables have no effect, some have, I don't know why.Finally I see kld_list="i956kms" in /etc/rc.conf
In order to load the drm-kmod driver, additional kernel modules must be added to the standard modules.Just noticed this in /var/log/messages
MFSMODULES?= aesni crypto cryptodev ext2fs geom_eli geom_mirror geom_nop \
iic ipmi lindebugfs linuxkpi_video ntfs nullfs opensolaris smbus snp tmpfs zfs
Copy MFSBSDROOTDIR/conf/loader.conf.sample without the suffix, addhow to change autoboot_delay
autoboot_delay="X" to the existing variables at the end of the file.MFSBSDROOTDIR/BUILD.mdhow to change ... password
The default root password is `mfsroot`. You can pick a different password
with the `ROOTPW` or `ROOTPW_HASH` `make` variables.
PASSWD_HASH?, add PASSWD?= <password>amdgpu.ko
dmabuf.ko
drm.ko
i915kms.ko
linuxkpi_gplv2.ko
radeonkms.ko
ttm.ko
Yes this I learned early. My images takes approximately 120 seconds at the MFSBOOT stage. It must uncompress MFSROOT file to memory.If you are thinking of adding/editing files and installing packages in the mounted mfsBSD image, this is not possible. The root file system in mfsBSD is a gziped archive,
cgps satellite tracker and it looks better with drm included with my image.