adding files/scripts/fixes truenas with permanence

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
I note that I can manually change/add some files like e.g. /boot/device.hints or /etc/rc.conf.local
to fix issues or make required changes.

However, other files / scripts get deleted or replaced after each reboot.

how do i add a file / script with permanence that is not covered in the gui parameters.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I note that I can manually change/add some files like e.g. /boot/device.hints or /etc/rc.conf.local
You need to use Tunables. Don't edit files directly.

Found under System | Tunables

how do i add a file / script with permanence that is not covered in the gui parameters.
You can use Pre or Post-init tasks to launch commands or scripts.

Also Cron Jobs.

Both of these are found under the Tasks item in the GUI.
 
Last edited:

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Either recompile the OS or you can run init scripts from there gui.
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
You need to use Tunables. Don't edit files directly.

Found under System | Tunables
I need to remark out the below lines in device.hints
# hint.atrtc.0.at="isa"
# hint.atrtc.0.port="0x70"
# hint.atrtc.0.irq="8"

that doesn't seem catered for in tunables
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Which hardware are you using that requires a real time clock to be manually assigned an IRQ?
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
Which hardware are you using that requires a real time clock to be manually assigned an IRQ?
i am using a supermicro X11that doesn't use irq. it needs to auto assign, or it gives an error on the port/irq. removing the hint makes it load without error
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
i am using a supermicro X11
That's unexpected... I would have expected to have encountered many more people in the forums with similar issues as I'm sure we have plenty of those boards running.

Perhaps that's one where you can log a feature request or a bug from the System | Support page in the GUI (or report a bug at the top of this page).

I'm not sure if a pre-init script would be early enough in the sequence, but you may be able to create a script that comments those lines (using sed) at every boot.
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
That's unexpected... I would have expected to have encountered many more people in the forums with similar issues as I'm sure we have plenty of those boards running.

Perhaps that's one where you can log a feature request or a bug from the System | Support page in the GUI (or report a bug at the top of this page).

I'm not sure if a pre-init script would be early enough in the sequence, but you may be able to create a script that comments those lines (using sed) at every boot.
it's probably more cosmetic than functional, but i like to remove all errors from the startup if i can
 
Top