Sysrc and NanoBSD

Hello,

I m trying to build an ISO image with nanobsd
but stuck at trying to add to the rc.conf

Code:
cust_setup_rcconf() {
     sysrc -R ${NANO_WORLDDIR} powerd_enable="YES"
}
customize_cmd cust_setup_rcconf

This is the first customization in the config.
I ve also tried executing run_late_customize beforehand.

The code I got from Klarasystems article with no date on it.

Momchil
 
Hello,

I use this function to update rc.conf without problem:
Code:
 cust_rconf() {
      RC_CONF="${NANO_WORLDDIR}/etc/rc.conf"
      echo "firstboot_enable=\"YES\"" >> ${RC_CONF}
      ...
}

However, can you provide the end of last log?
 
Sure
1680432980257.png


Your suggestion worked by the way. thank you.

Any chance you have a cfg working with zfs partitions?
Seems like it is a rather complicated task.
 
Any chance you have a cfg working with zfs partitions?
I only use UFS with NanoBSD, but I doubt it's a zfs problem. Does this directory exist?

Code:
/usr/obj/nanobsd.bHype/_.w/

Looks like there is a typo somewhere with /usr/obj/nanobsd.bHyve ( /p/v/ ). If not, try by hand :

Code:
sysrc -R /usr/obj/nanobsd.bHype/_.w foo_enable=YES
 
/usr/obj/nanobsd.bHype/_.w/ does exist

there is no typo. this is the correct path

I tried by hand before I posted this. Same output.

I was not expecting a problem with zfs.
Just really wanted to have nanobsd create zfs partitions.
 
/usr/obj/nanobsd.bHype/_.w/ does exist
This is the stage directory to prepare the system hierarchy. This is done before creating diisk image (with UFS or ZFS partitions). If this does not exist, there is a problem in a previous step like buildworldor buildkernel. Checks all log files in /usr/obj/nanobsd.bHype/
 
Honestly, I just realized that same thing. I used -b -B to skip the compilations and installations.
seems there is a cleanup procedure somewhere in there. Will test the whole process with sysrc tomorrow morning.
 
Back
Top