Feature Request: Have early package installation mechanism


ken-ji

Recommended Posts

In line with the security concerns, I'm really thinking we need a way to install packages early.

  • lets have a location /boot/config/patches
  • say samba needs updates, so a new samba.txz is released (or taken from Slackware upstream)
  • we save the package there.
  • during startup, unraid sees the package (before anything else starts up - before the network even) and applies it - upgrading the contents of the ram disk

Of course I see some issues with this as some unRAID installations might become different from other installs of the same "version", but i think this is an important feature /framework to mitigate security issues. or really bad gotcha's with like docker deprecating old versions and what not.

 

Edit: corrected a typo

Link to comment

The earliest you can get on current systems is using /boot/extra/ for early packages. It is invoked from the /etc/rc.d/rc.local script before any /boot/config/plugins/*.plg are installed, which is also before /boot/config/go script is kicked off that is before emhttp is launched. However, that is all at the very end of what /etc/rc.d/rc.M kicks off, so you still have networking and samba starting before that point.

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.