alexey123 wrote:
Hi
TheBrig working branch was have big bug. This bug happened because of my windows client issue. Bug make impossible update any from webgui.
I repaired it, before 2 weeks, now all work. But I not change version number, I want give to work TheBrig self updater and prepare thebrig to create openvpn jails.
Now I change version number, and you can update TheBrig without problem. Openvpn and webupdater will work next time
How to update jails:
Under NAS4Free
9.1.0.1
1. Update Thebrig
Code: Select all
fetch https://raw.github.com/fsbruva/thebrig/working/thebrig_install.sh
sh thebrig_install.sh /mnt/path/to/brig 2
2. Update binaries for all jails over Extensions|TheBrig|FreeBSD Update tab
After update you have 9.1-RELEASE-p10
3. Upgrade jails to FreeBSD 9.2
enter to each jail and type command
Code: Select all
freebsd-update upgrade -r 9.2-RELEASE
freebsd-update install
After upgrade you have jails with 9.2-RELEASE world
4. Just now upgrade base NAS4Free system from 9.1 to 9.2
5. Update binaries from over Extensions|TheBrig|FreeBSD Update tab again.
6. Update ports .
If you use cental ports - one ports folder for all jail, update over webgui page Extensions|TheBrig|Central Ports
If you use standart ports - use
for each jail or remove old ports and install new
7. Upgrade software inside jail by portupgrade or portmaster tool.
Hi Alex!
I tried this one, as I wanted to upgrade to current 9.2. However, it doesn't work for slim jails I have created with TheBrig 0.7...
I'll quote myself here, just to make the post clearer... PROBLEM SOLVED (see EDIT3 below)
First tried it as shown here, but after point 2. the jails do not show as "9.1-RELEASE-p10", they stay at "Downloaded Version" "No Tag".
Then I tried it in the jail:
and the jail shows as "Downloaded Version" "9.1-RELEASE-p10", but when I want to actually update it with
I get:
Code: Select all
root@minidlna:/ # freebsd-update install
Installing updates...chflags: ///lib/libc.so.7: Read-only file system
Do you have a tip how to circumvent this? Of course, one could do it the hard way: Jail by Jail, always mouting an own copy of the basejail rw, but that wouldn't match the idea of slim jails...
I created a new test jail in TheBrig 0.8, however, and this one works. I can update it just the way you described. What files are missing in the older Jails that prevent the update from working? I'd love to update these Jails without having to recreate them, as it too quite some time to get everything configured in there.
And an additional question:
After this attempt to update the jails, the mounting of basejail got lost -- the basejail isn't mounted automatically anymore, even after reboot. After manually mounting the basejail, however, jails run fine again.
Where is the correct place to put the mount commands for the basejail, to get this back to original state?
EDIT:
I just checked in comparison to the new test jail, in the /etc/fstab.{jailname} created for the older jails, the entry for the basejail is missing now...
EDIT2:
Found the solution for this problem, somehow the config file may have changed with the update, but my old jails till had:
<type>slim</type>
in the config, but the the following is needed:
<jail_type>slim</jail_type>
EDIT3:
Its me again. It was indeed only the problem with the config file not being correctly updated on TheBrig update. After manully adapting the config file (see EDIT2), the jails finally update as they should. currently running the "freebsd-update upgrade -r 9.2-RELEASE" on all my three jails.
EDIT4:
OK, cheered too soon...
Code: Select all
root@madsonic:/ # freebsd-update install
Installing updates...chflags: ///bin/rcp: Read-only file system
So I am stuck in Step 3...
EDIT5:
Getting closer...
Using the {Jails_basedir}/conf/freebsd-update_thin.conf and adding "/usr/lib" under "IgnorePaths" (as this is also in the basejail), the files to be changed after "freebsd-update upgrade -r 9.2-RELEASE" look reasonable. Only planed changes in /etc, /root and /var left over. However, I still cannot finish the upgrade to 9.2-RELEASE:
Code: Select all
root@test:/ # freebsd-update install
Installing updates...mkdir: /boot/kernel.old: Read-only file system
mtree: /boot/kernel.old: No such file or directory
touch: /boot/kernel.old/.freebsd-update: No such file or directory
Could not create kernel backup directory
EDIT6:
Finally, I got it working!
In addition to adding "/usr/lib" under "IgnorePaths" I had to add "BackupKernel no". Then, finally "freebsd-update install" finished.
Code: Select all
root@test:/ # freebsd-update install
Installing updates... done.
root@test:/ #
axc27