Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
How to add user while building ISO?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to add user while building ISO? (Read 1138 times)
nitish.patel
Newbie
Posts: 36
Karma: 0
How to add user while building ISO?
«
on:
October 07, 2023, 10:21:08 am »
After creating an ISO, I want to add an user at the time of installing the ISO, How can I achieve it?
Let me know which files do I need to modify so that I can get the user created after installing the ISO.
Cheers,
Nitish
«
Last Edit: October 07, 2023, 10:24:40 am by nitish.patel
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: How to add user while building ISO?
«
Reply #1 on:
October 07, 2023, 11:26:57 am »
I add a user named "vagrant" to OPNsense in my development environment project:
https://github.com/punktDe/vagrant-opnsense
You are welcome to "steal" the couple of lines of code.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
nitish.patel
Newbie
Posts: 36
Karma: 0
Re: How to add user while building ISO?
«
Reply #2 on:
October 07, 2023, 12:39:51 pm »
Thanks you for your response. Can you please let me know what is the process or which file do I need to change or what lines of code do I need to add so that an user will get created at the time of installation.
Cheers,
Nitish
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: How to add user while building ISO?
«
Reply #3 on:
October 07, 2023, 04:11:08 pm »
Have you had a look at my code? It's full of comments ...
Lines 80 ff. of Vagrantfile plus files vagrant1.xml and vagrant3.xml show you exactly what to do.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
nitish.patel
Newbie
Posts: 36
Karma: 0
Re: How to add user while building ISO?
«
Reply #4 on:
October 11, 2023, 08:58:37 am »
Hi Patrick,
Thank you for your response.
I have seen your file, but I am confused about which repository of OPNsense I should add this code.
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: How to add user while building ISO?
«
Reply #5 on:
October 11, 2023, 09:09:15 am »
I don't know how OPNsense builds its ISO. The one that does this, obviously. That's your "homework". From the responses you got you can guess that probably nobody here ever built an OPNsense install ISO. This is the community forum, not the OPNsense developers.
Seriously, the OPNsense build toolchain seems to be this repository:
https://github.com/opnsense/tools
Have you cloned that already and set up a build environment as documented? I'd start with that, then let the build process run a couple of times watching what it does, to get a feeling for which parts do which job.
Then you can try to find any hooks or places for scripts for customisation.
EDIT: just the README in that repo contains a ton of information about the build process - exactly what you are asking for.
HTH,
Patrick
«
Last Edit: October 11, 2023, 09:35:32 am by Patrick M. Hausen
»
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
How to add user while building ISO?