Nepodporovany FreeBSD 9.3 vs. aktualizacia aplikacii

Miroslav Lachman 000.fbsd at quip.cz
Tue Feb 21 18:15:13 CET 2017


Lubomir Majersky wrote on 2017/02/21 17:05:

>> Jestli chces mit trochu vic klidu v hlave, tak si ten stroj naklonuj
>> nekam do VPS (bhyve, virtualbox, vmware...) a tam zkus udelat upgrade.
>> Na to ti v podstate staci rsyncem prekopirovat systemove oddily bez
>> uzivatelskych dat a bez logu.
>      Neprevadzkujem, nemam a riesit to teraz na poslednu chvilu...

Nekdy je lepsi tomu ten cas venovat a opravdu to otestovat, nez pak 
cestovat 300km do serverovny. Ja takhle testoval upgrade z 8.4 i386 na 
10.x amd64 - vyplatilo se ;)

>> Nebo rovnou buildworld a buildkernel na tom upgradovanem stroji, jestli
>> mas jen jeden stroj.
>      Ano, mam len jeden... mozes byt konkretnejsi? Viem co je
> 'buildworld' 'buildkernel', ide mi vsak o postupnost krokov, staci
> strucnou osnovou... dokonca som si uz pripavil vlastne jadro pre
> 10.3-ku... Kedysi som opisal svoje poznatky (7.12.2010 - Poznatky II.)

Uz ti Dan napsal, jak to dela. JInak je to dobre popsane jak v 
Handbooku, tak i primo v /usr/src/Makefile


#  1.  `cd /usr/src'       (or to the directory containing your source 
tree).
#  2.  `make buildworld'
#  3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE'     (default is 
GENERIC).
#  4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is 
GENERIC).
#       [steps 3. & 4. can be combined by using the "kernel" target]
#  5.  `reboot'        (in single user mode: boot -s from the loader 
prompt).
#  6.  `mergemaster -p'
#  7.  `make installworld'
#  8.  `mergemaster'            (you may wish to use -i, along with -U 
or -F).
#  9.  `make delete-old'
# 10.  `reboot'
# 11.  `make delete-old-libs' (in case no 3rd party program uses them 
anymore)
#
# See src/UPDATING `COMMON ITEMS' for more complete information.


Pokud by ses bal treba toho, ze to s novym kernelem nenabehne, muzes 
pouzit nextboot, kteremu reknes, ktery adresar s kernelem se ma pouzit 
pro pristi boot - pouzije se jen jednou. Pokud by boot selhal, staci, 
aby nekdo ten stroj rebootoval a melo by to nabehnout se starym kernelem 
- to si samozrejme muzes dovolit tehdy, kdyz mas jeste stary userland, 
nebo kdyz je novy kernel schopny behat se starym userlandem (coz 
vetsinou je, ale treba u ZFS tohle neplati)

nextboot -k kernel.MUJ_KERNEL


Mirek



More information about the Users-l mailing list