[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proper Steps to Update Host & Jails



going from 8.x -> 8.4

Would the following steps be correct?

update ports on host
    `sudo portsnap fetch update`
update basejail ports
    `sudo ezjail-admin update -P`
    
update all out of date ports on the host
    for each <portname> in `sudo portversion -v -L=`
        sudo portupgrade <portname>

do a complete port rebuild on host to ensure cleanliness
    `sudo portupgrade -fa`         [force all - rebuild everything]
    

for each <jailname> in `ezjail-admin list`:
    for each <portname> in `portversion -v -L=`
        sudo portupgrade <portname>
    rebuild all ports on jail
        sudo portupgrade -fa
        

Now all ports on host and jails should build cleanly


http://wp.edsel.nu/2011/08/15/update-jails-with-freebsd-update/

shutdown jails:
    /usr/local/etc/rc.d/ezjail.sh stop

        
update the host
    sudo freebsd-update fetch
    sudo freebsd-update install
update the base jail
    sudo ezjail-admin update -u

??(( REBOOT HOST ))??    

update the ports (host and basejail)
    sudo ezjail-admin update -P

rebuild the ports on the host
    sudo portupgrade -fa
    
for each <jailname> in ezjail-admin list
    ezjail-admin console <jailname>   # this will start the jail
        sudo portupgrade -fa


When to reboot the host machine is one that I am concerned with and want to make sure is in the proper place.       This is a vanilla ezjail machine, no ZFS,  ezjail-admin install -mp

Best,

-Jeff