Ezjail host source upgrade: Difference between revisions
From TykWiki
Jump to navigationJump to search
(Created page with "update world: # csup -L 2 /etc/stable-supfile && make -j8 buildworld && make -j8 buildkernel && make installkernel && reboot # mergemaster -pFUi && make installworld && mergem...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
update world: | first update world of the jail host: | ||
# csup -L 2 /etc/stable-supfile && make -j8 buildworld && make -j8 buildkernel && make installkernel && reboot | # csup -L 2 /etc/stable-supfile && make -j8 buildworld && make -j8 buildkernel && make installkernel && reboot | ||
# mergemaster -pFUi && make installworld && mergemaster -FUi && reboot | # mergemaster -pFUi && make installworld && mergemaster -FUi && reboot | ||
# ezjail-admin update -i | # ezjail-admin update -i | ||
# | # rm /usr/jails/newjail/etc/make.conf | ||
run mergemaster in all jails (as root): | Finally, to run mergemaster in all jails (as root): | ||
* for jail in `jls -n jid`; do JID=`echo $jail | cut -d "=" -f 2`; echo Processing jail id $JID; JPATH=`jls -j $JID -n path`; JPATH=`echo $JPATH | cut -d "=" -f 2`; mount_nullfs /usr/src $JPATH/usr/src; mount_nullfs /usr/obj $JPATH/usr/obj; jexec $JID mergemaster -FUi; umount $JPATH/usr/src; umount $JPATH/usr/obj; done | * for jail in `jls -n jid`; do JID=`echo $jail | cut -d "=" -f 2`; echo Processing jail id $JID; JPATH=`jls -j $JID -n path`; JPATH=`echo $JPATH | cut -d "=" -f 2`; mount_nullfs /usr/src $JPATH/usr/src; mount_nullfs /usr/obj $JPATH/usr/obj; jexec $JID mergemaster -FUi; umount $JPATH/usr/src; umount $JPATH/usr/obj; done |
Latest revision as of 12:13, 2 June 2012
first update world of the jail host:
- csup -L 2 /etc/stable-supfile && make -j8 buildworld && make -j8 buildkernel && make installkernel && reboot
- mergemaster -pFUi && make installworld && mergemaster -FUi && reboot
- ezjail-admin update -i
- rm /usr/jails/newjail/etc/make.conf
Finally, to run mergemaster in all jails (as root):
- for jail in `jls -n jid`; do JID=`echo $jail | cut -d "=" -f 2`; echo Processing jail id $JID; JPATH=`jls -j $JID -n path`; JPATH=`echo $JPATH | cut -d "=" -f 2`; mount_nullfs /usr/src $JPATH/usr/src; mount_nullfs /usr/obj $JPATH/usr/obj; jexec $JID mergemaster -FUi; umount $JPATH/usr/src; umount $JPATH/usr/obj; done