I have a few ZFS related questions. I'm trying to set up a custom installation where instead of installing to a fresh ZFS pool, I would like to install using the auto ZFS install script; however, set the root of the ZFS install point to a sub dataset of an existing pool.
Say I had an existing pool with the dataset zroot/freebsd, I would like to have the installer use that as the top level point of the FreeBSD install. What would be the easiest way to do an install like this? Is there a way to do this with the installer without having to manually do the entire install?
Looking at the code from the BSD installer on GitHub I noticed that at the beginning of the script "zfsboot" it sets the pool name and a bunch of other settings. Would a good way to do an install like this be to customize this script to my liking and then run it in the installer somehow? How would you recommend I do this?
If I have to i'm fine with trying to do the install manually, but I would prefer to use the already completed script in the BSD install considering it should just be a small change to set it up in the way I would like to do it. I'm also afraid I might mess up the data sets if I were to try to do the whole thing myself as I noticed the dataset setup is fairly complicated.
Has anyone else done this? Or can anyone point to a resource where doing something like this is explained?
Say I had an existing pool with the dataset zroot/freebsd, I would like to have the installer use that as the top level point of the FreeBSD install. What would be the easiest way to do an install like this? Is there a way to do this with the installer without having to manually do the entire install?
Looking at the code from the BSD installer on GitHub I noticed that at the beginning of the script "zfsboot" it sets the pool name and a bunch of other settings. Would a good way to do an install like this be to customize this script to my liking and then run it in the installer somehow? How would you recommend I do this?
If I have to i'm fine with trying to do the install manually, but I would prefer to use the already completed script in the BSD install considering it should just be a small change to set it up in the way I would like to do it. I'm also afraid I might mess up the data sets if I were to try to do the whole thing myself as I noticed the dataset setup is fairly complicated.
Has anyone else done this? Or can anyone point to a resource where doing something like this is explained?