Hi,
I'm hoping someone here can perhaps help me out a bit on this one?
I need to create some VM OVA images of a custom FreeBSD install that I can give to people to do their own installs and I would like to have the image prompt them to change the networking details and hostname by the first time the imported image is booted up, similar to how lot of custom Linux installs do.
I was hoping to accomplish this task by having a firstboot script in rc.d that calls bsdconfig, `bsdconfig networking` to be exact, just before login, let's call it firstboot-config, as well as few other tasks.
The problem I'm having is that when the script is run just before login all I get is a black screen with a mouse cursor that exits when enter is pressed, instead of the blue text based GUI of bsdconfig.
Is there a proper way of getting something like bsdconfig to run correctly before login or would I have to rather rely on using automatic logon of the root user and then run the script that way?
P.S. even though the script used would have a section which removes the autologin, prevent the scripts from running on next login and force a change of the root password, I really don't like the idea of autologins especially to root.
I'm hoping someone here can perhaps help me out a bit on this one?
I need to create some VM OVA images of a custom FreeBSD install that I can give to people to do their own installs and I would like to have the image prompt them to change the networking details and hostname by the first time the imported image is booted up, similar to how lot of custom Linux installs do.
I was hoping to accomplish this task by having a firstboot script in rc.d that calls bsdconfig, `bsdconfig networking` to be exact, just before login, let's call it firstboot-config, as well as few other tasks.
The problem I'm having is that when the script is run just before login all I get is a black screen with a mouse cursor that exits when enter is pressed, instead of the blue text based GUI of bsdconfig.
Is there a proper way of getting something like bsdconfig to run correctly before login or would I have to rather rely on using automatic logon of the root user and then run the script that way?
P.S. even though the script used would have a section which removes the autologin, prevent the scripts from running on next login and force a change of the root password, I really don't like the idea of autologins especially to root.