Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
And for people like me that have just began to leave MicroSoft behind and wanting to embrace Linux it is a little baffling that TrueNAS scale somehow manages to delete my root changes to the file system.
Here is the situation;
I installed TrueNAS Scale 22.04 on a VM to test if my "custom" changes to the system would persist after a reboot.
I understand that TrueNAS is meant as an appliance and not be messed with but I'd like to invoke the right to repair act here.
But when I create a wireguard configuration wg0.conf and wg-quick up wg0 then all is fine. it goes up just like I expect it.
But after a reboot the wg0.conf file is gone. Only the public and private key files are still there.
How can I make it so that I decide how my appliances behave in my own home?
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521
Rep:
It may be using a compressed image, (that may get loaded to ram & run from there), if it is, you would have to extract it, decompress it, add your bits, re compress it, then reload it to the appliance, not an easy job.
P.S.
Quote:
What OS is TrueNAS based on?
The company now offers three separate OS products. Two are based on FreeBSD 13: TrueNAS CORE, which replaces FreeNAS, and the commercial TrueNAS Enterprise, available on the company's storage hardware. Complementing them is a new Linux-based product, TrueNAS SCALE.11 May 2022
I will investigate some more. I am way out of my comfort zone here when going the path you described.
It mightbe that there is a process digging in the /etc/wireguard/ folder on startup. so I will try to create a ~/wireguard/wg0.conf and see where that leads me.
It might be what fatmac says, since the BSD version definitely runs from RAM, but it also persists settings, so perhaps you need to manually "commit" the config changes in some fashion. If so, there's a fair chance that process is described in the TrueNas documentation.
Alternatively, it could be the way you're running it in the VM - how specifically are you doing that?
A quick search turned up discussions like this on the community forum.
Broken by design - the Scale heritage as mentioned in the OP. Looks like the (only) solution is to manage it by pre/post init scripts referencing scripts in your private pools.
So I have some great news.
Changes that I make to the root home folder ~ do persist after a reboot.
So I created a ~/wireguard/wg0.conf
and can happily start and stop it using wg-quick up ~/wireguard/wg0.conf.
The only issue now is that I can't auto start the wireguard connection using
systemctl enable wg-quick@wg0
because the /etc/wireguard/wg0.conf does not exist.
Does anyone have a suggestion on how to auto start the wireguard interface after a reboot?
Other than that it's nice to be able to break an appliance and make it behave. I like linux, albeit a bit intimidating from time to time this CLI.
@boughtonp, regarding the VM. I am running a proxmox (debian) OS which makes it relatively painless for new comers like my self to create VMs.
It's a rather mundane VM setup so I am not sure if we have a need to go into more details even though I am more than willing to do so in case we need it later down the line.
It does not surprise me in the least that the designers of an appliance would build in some protection against changes to their software image. I would do the same.
It does not surprise me in the least that the designers of an appliance would build in some protection against changes to their software image. I would do the same.
Yes of course. But in my case I wanted to have RASDaemon running and create a swatch to email me when ECC activity is being detected.
That has never been a feature of FreeNAS / TrueNAS as far I was able to figure out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.