May 19, 20242 yr I like the approach of Unraid to keep the system at an mostly isolated and immutable state, however I'd like to retain my root folder and all the nice things that come with it, like e.g. a persistent bash/zsh history and config. I read some approaches that setup this on every start using install scripts, but this approach is likely to break as quite a few components are involved and -lets face it- they change more often than I'd like them to. I thought about just copying my root folder to the Array on ArrayStop and copy it back on ArrayStart. A second option would be to soft link the folder on the Array over the stadard root folder, does that work? Do you think this could work and more importantly are there any downsides or sideeffects to this one should know about? Happy to hear your feedback about it or how you deal with the issues mentioned in the beginning. Edited May 19, 20242 yr by kinl99
May 19, 20242 yr Community Expert nope. unraid boots from flash drive and load the os into ram. unraid runs a mutable version of Slackware linux vi bzr firmware and bzr-overleys. You would need to reverse engineer the bzr-firmware to get that persistent.... if you are trying to install something and keep it at boot vm/lxc / tzr slackware pacakge.... see this forum post. 2nd pin post and post right under...
May 19, 20242 yr Community Expert For persistent command, you would need to setup a go file script or user plugin script to run commands at startup... https://superuser.com/questions/760830/how-do-i-change-the-bash-history-file-location and place the bash history on actual storage... Similar script at array shutdown user script #bin bash history > /mnt/user/appdata/bashhistory.txt this will output all the commands ran at shutdown... good luck: https://mattcasmith.net/2022/02/22/bash-history-basics-behaviours-forensics#:~:text=The .,and outs to its behaviours. Edited May 19, 20242 yr by bmartino1
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.