In realtà non si tratta di una prosecuzione del precedente post intitolato Aggiornare OpenSolaris, ma di un approccio al suo aggiornamento completamente differente.
C’è da premettere un concetto fondamentale, l’aggiornamento del sistema alle nuove release snv_XX non è una passeggiata, si tratta sempre di versioni di sviluppo che ricevono pochissimi test (anzi, siamo noi che dovremmo farli…), quindi prima di proseguire con gli aggiornamenti fatevi sempre un backup di tutto quello che potete!
La prima operazione da fare è controllare le operazioni da effettuare per l’aggiornamento come riportato nel documento “Updating Your System to OpenSolaris Development Builds” (e anche qui il titolo la dice lunga…), come noterete le operazioni da compiere differiscono in base alla versione attualmente installata sulla vostra macchina.
Ora, ho pensato bene di raccogliere questi comandi e di automatizzarli, in modo tale che con un semplice comando si possa tenere aggiornato la propria installazione di OpenSolaris. Lo script potete scaricarlo da qui: http://morettoni.net/files/updateos, basterà lanciarlo come utente normale ed ecco ciò che “dovrebbe” accadere:
luca@vos001:~$ ./updateos * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMPORTANT: this is a DANGEROUS operation, backup your data before start! Take a look at: http://opensolaris.org/os/project/indiana/resources/rn3/image-update/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * The operation starts in 10 seconds, press CTRL+C to stop... Your system version: 86 Refreshing ipkg system... DOWNLOAD PKGS FILES XFER (MB) Completed 3/3 249/249 2.53/2.53 ...some output... Creating new BE: opensolaris-1 Checking that SUNWipkg (in '/') is up to date... Before evaluation: UNEVALUATED: +pkg:/SUNWgetting-started-l10n-ko@0.5.11,5.11-0.86:20080820T050710Z +pkg:/SUNWgetting-started-l10n-fr@0.5.11,5.11-0.86:20080820T050709Z +pkg:/SUNWgetting-started-l10n-sv@0.5.11,5.11-0.86:20080820T050711Z +pkg:/SUNWopensolaris-welcome@0.5.11,5.11-0.86:20080820T050703Z ...other outputs... DOWNLOAD PKGS FILES XFER (MB) Completed 543/543 26557/26557 487.08/487.08 PHASE ACTIONS Removal Phase 7097/7097 Install Phase 12505/12505 Update Phase 73947/73947 PHASE ITEMS Reading Existing Index 8/8 Indexing Packages 543/543 opensolaris-1 has been updated successfully --------------------------------------------------------------------------- NOTE: Please review release notes posted at: http://opensolaris.org/os/project/indiana/resources/rn3/ --------------------------------------------------------------------------- fixing GRUB... Creating GRUB menu in /tmp/mnt842 Installing grub on /dev/rdsk/c4d0s0 stage1 written to partition 0 sector 0 (abs 16065) stage2 written to partition 0, 266 sectors starting at 50 (abs 16115) beadm: Unable to unmount opensolaris-[N+1] beadm: Unable to activate opensolaris-[N+1] Your system is now updated! You can boot into the updated BE using reboot(1M) or init(1M) luca@vos001:~$
Una volta effettuato il reboot godiamoci la nuova release!
Lo script è stato testato sulla mia macchina (anche con VirtualBox) eseguento correttamente l’aggiornamento da snv_95 a snv_96 e da snv_86 a snv_96! Sono gradite segnalazioni di problemi e/o ulteriori suggerimenti per il suo miglioramento!





ciao, bellissima idea.
provo lo script dalla 97 alla 98 e ti faccio sapere
Su una installazione di test il passaggio da snv_96 a snv_98 non ha creato nessun problema!
root@beppe:/UPDATE_morettoni#./updateos
Your system version: 97
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
IMPORTANT: this is a DANGEROUS operation, backup your data!!!!!!!!!!!
Take a look at:
http://opensolaris.org/os/project/indiana/resources/rn3/image-update/
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
The operation starts in 10 seconds, press CTRL+C to stop…
Refreshing ipkg system…
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 103/103 0.36/0.36
PHASE ACTIONS
Removal Phase 12/12
Install Phase 5/5
Update Phase 150/150
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1/1
Nothing to install in this image (is this package already installed?)
Executing normal upgrade…
Checking that SUNWipkg (in ‘/’) is up to date…
PHASE ITEMS
Indexing Packages 590/590
DOWNLOAD PKGS FILES XFER (MB)
Completed 593/593 4205/4205 117.35/117.35
PHASE ACTIONS
Removal Phase 3319/3319
Install Phase 3887/3887
Update Phase 11202/11202
Reading Existing Index 9/9
Indexing Packages 593/593
A clone of opensolaris exists and has been updated and activated. On next boot the Boot Environment opensolaris-1 will be mounted on ‘/’. Reboot when ready to switch to this updated BE.
—————————————————————————
NOTE: Please review release notes posted at:
http://opensolaris.org/os/project/indiana/resources/rn3/
—————————————————————————
Your system is now updated!
You can boot into the updated BE using reboot(1M) or init(1M)
init 6
ciao,
ieri ho fatto l’upgrade dalla versione 98 alla 99….tutto ok!
Vorrei farti un pò di domandine….hai gmail?