-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation procedure for 2.4.27 for UDM/PRO bootscript #501
Comments
Yes, UDM 2.4.7 firmware brought many changes and it will take some time before everything is working. I am also waiting on a singular DEB file I can download and apply to UDM offline after factory reset. |
Yeah as it said in the patch notes. Note: Any 3rd party modifications made to the OS of the console will be lost after the upgrade, proceed with caution if you modified your console's OS. Its deleted all data for on_boot. It also seems to have removed unifi-os command too! |
I noticed the removal of the UniFi-os command set as well. What has replaced this? (Sorry if I'm missing an answer that has already been posted.) |
Hey. It looks to me like they have gone to a standard Linux build. I say this cos before ssh keys wouldn't take in the normal way. They had to be added in unifi-os. Now ya can ssh copy key directly to UDM and it now works same as any other Linux build. |
There is a new build to be found that at least installs clean on my 2.4.27.
and then enable...
and hmm.. this actually fails I just noticed.. and I think I found why... there is an error in the command, and if I edit and remove the blank space it seems to work as intended...
Then reload and start
and the on_boot.d is created.. |
Can confirm that @m4n63's method worked on v2.4.27 of UDMP, with the exception that the URL for the .deb package seems to be at https://unifi.boostchicken.io/udm-boot-v2+/udm-boot-2x_1.0.1_all.deb now. |
Upgraded to 2.5.17 today, and the /data/on_boot.d is retained, but the udm-boot-2x_1.0.1_all.deb is not automatically reinstalled after upgrade. |
+1 for 2.5.17 and the above package installing after removing the errant space. Any ideas on where the /mnt/data/on_boot.d is now as the unifi-os shell isn't available any more |
The on_boot.d directory is directly under /data now. |
Thanks for that. The directory doesn't exist though. I've made it and placed the same script I had before (just conditional dns forwarders) in there but not restarted to test it yet. Is the on-boot program simply looking for that dir or have I missed something resulting in it not being created? |
It gets created automatically when you fix the error in the command in this file as described in my post above. |
not sure what's gone wrong there then. steps were:
I've made the folder manually and will try a restart later today to see if it works as intended. If so may be a bug? |
Install the .deb package ExecStart=bash -c 'mkdir -p /data/on_boot.d && find -L /data/on_boot.d -mindepth 1 -maxdepth 1 -type f -print0 | sort -z | xargs -0 -r -n 1 -- sh -c '''if test -x "$0"; then echo "%n: running $0"; "$0"; else case "$0" in *.sh) echo "%n: sourcing $0"; . "$0";; *) echo "%n: ignoring $0";; esac; fi'' remove these lines as well from the file as to handle errors better: then reload: and start then the directory should be created if it does not already exist so you probably missed the reload and start command |
should work after restart, or use the reload / start commands as detailed in the post above |
ah looks like I did miss those out. Removed my dir and those restart lines from the service file then ran again and it made the dir for me. Thank you! For anyone as daft as me here's my start-to-end:
Will try a restart when finished with work for the day |
Has anyone tried this install on 3.0.20? |
I did the update from 2.5.17 -> 3.0.20 on my DMP today. Worked just as it did when I upgraded from 2.4.27 -> 2.5.17 steps:
ping @SGXander |
Star thanks for confirming. Will give it a go tonight. Help.ui.com wont let you raise tickets without updating to the latest version but I rely on a DNS view for daytoday so can't stomach upgrades without being sure! Wish they'd add forwarders to the network app! |
Confirmed working. Actually /data/on-boot.d and my script inside the dir were still present after the upgrade but blatted and rerun anyway. |
Upgraded from 3.0.20 to 3.1.15 today, same procedure as last time ;-) So far all seems to work fine. |
Can you please point me to the fix/changes referenced in step 3? TIA. |
A few steps up ;-) |
also, make sure you install the latest .deb.. #download |
Have the things from the sed lines above been fixed? Not looked at it yet will have an upgrade this weekend! |
No, the package in the link is still broken and need the fixes applied after install. |
fair enough thanks for confirming. has anyone gone to 3.1.15 yet? |
Yes, it worked the same way as last time for me. |
anyone got the .deb mirrored? I'm getting "failed to resolve /ipns/unifi.boostchicken.io/udm-boot-v2+/udm-boot-2x_1.0.1_all.deb: could not resolve name" from https://unifi.boostchicken.io/udm-boot-v2+/udm-boot-2x_1.0.1_all.deb |
Also confirmed working on 3.1.15.
Although it did not create the directory under /mnt this time I had to mkdir /mnt/data and mkdir /mnt/data/on_boot.d which I've added above too. |
Hey, @SGXander @m4n63 ! Are you sure this space thing I still there? I've just downloaded the file with the link below and I don't see this error I did
It seems totally fine. Please, let me know if I'm looking at the wrong file
|
@SGXander wrote:
I am still on UDMP firmware 2.5.17 and downloaded udm-boot with curl as shown above. However, I failed to install udm-boot:
I am not familiar with the specialities of the linux system behind UDMP. I wonder whether 100% run partition is the root cause for the above problem:
Does anyone has a hint as how to further proceed to install udm-boot? Thanks and best regards, |
No. It seems this was fixed in this commit on Feb 22.
Same here. |
For reference. Installed Edit: moved actual steps to more appropriate issue related to UDM-PRO 3.0. (this issue is for 2.4.x) |
I tried to follow installation instruction but it seems that many changes as occured since the doc was updated the last time
First command to remove /etc/init.d/udm.sh does'nt exist
Wondering if I should continue with the rest of the process or anyway it won't work with 2.4.27
thanks
Here is the messages from installation
UniFi Dream Machine Pro version 2.4.27 was detected
Installing on-boot script...
Failed to disable unit: Unit file udm-boot.service does not exist.
Creating systemctl service file
Enabling UDM boot...
Created symlink /etc/systemd/system/multi-user.target.wants/udm-boot.service → /etc/systemd/system/udm-boot.service.
UDM Boot Script installed
The text was updated successfully, but these errors were encountered: