SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
1
Upgrade-ux
Open Source framework to patch,
update or upgrade your Operating
System (HP-UX, Linux, Solaris,...)
http://www.it3.be/projects/upgrade-ux.html
Gratien D'haese
2
Gratien D'haese
● E-mail: gratien . dhaese @ gmail . com
● URL: http://www.it3.be
● Independent UNIX Consultant
● Over 25 years of experience with UNIX and
Linux
● Involved with several Open Source Projects:
– relax-and-recover (rear),
– cfg2html, wbemextras, adhocr,
– mkCDrec, upgrade-ux,...
3
Why upgrade-ux?
● Check-lists are difficult
4
Why (again) another tool?
● Upgrade-ux prevents avoidable errors
– Patching the wrong Operating System
– Gather evidence before/after patching
– Double checks if all requirements are met
– Cannot skip a step (unless you force it)
– Check system health so it can handle an
update and survive a reboot
– Logging is extremely important for audit and
troubleshooting (if required afterwards)
5
Benefits of upgrade-ux
● Impossible to install any software when
“preview” run was not successful
● Works with stages and is configurable via
configuration files and an INI file
● Framework is borrowed from relax-and-
recover (rear) project
● Repeatable (as it remembers the stages
it executed successfully)
6
Benefits of upgrade-ux (cont.)
● After rebooting you can just continue
● Upgrade-ux is completely written in ksh
● Extremely modular (scripts are only a few
lines long)
● Easy to modify and extend to your needs
● Is Open Source:
https://github.com/gdha/upgrade-ux
7
Upgrade-ux requirements
● Using Korn Shell language instead of bash (so
same framework works on HP-UX, Solaris, AIX,
OS/X, and Linux)
● If ksh is not present:
$ sudo opt/upgrade-ux/bin/upgrade-ux dump
sudo: unable to execute opt/upgrade-
ux/bin/upgrade-ux: No such file or directory
● The RPM/DEB package has ksh as a pre-requisite
● Manual install ksh:
$ sudo yum install ksh
● Root privileges
8
Installing upgrade-ux
● The sources via git:
git clone
https://github.com/gdha/upgrade-ux.git
● Install the rpm/deb
● To create a rpm/deb:
– $ cd packaging/Linux
– $ make rpm
– $ make deb
9
Upgrade-ux Stages
● Store the INI file as
(.)/etc/opt/upgrade-ux/${OS}-${OSver}-${YEAR}.ini
● Stages known are (can be empty or not
existing):
– Preremove
– Preinstall
– Install
– Postinstall
– Postremove
– Configure
– Cleanup
– Postexecute
10
Upgrade-ux INI file
● We should have at least [install] section defined
● Example of install definition on HP-UX 11.31:
[install]
command[0] = $SWINSTALL
options[0] = "-x mount_all_filesystems=false"
source[0] = "-s
$SDSERVER:/var/opt/depots/upd11-
31-may2014"
bundle[0] = Update-UX
version[0] = ""
11
Upgrade-ux configuration
files
● Operating System related config files
– HP-UX.conf or GNU/Linux.conf
● Architecture related config files
– Linux-i386.conf
● Local config file
– local.conf or site.conf
● Use upgrade-ux dump to see the details
of your system
12
Upgrade-ux dump
$ sudo opt/upgrade-ux/bin/upgrade-ux dump
upgrade-ux 1.2 / Git
Using log file: /home/gdha/projects/upgrade-ux/var/opt/upgrade-ux/log/upgrade-ux-20150109-1548-
LOGFILE.log
Dumping out configuration and system information
This is a 'Linux-x86_64' system, compatible with 'Linux-i386'.
System definition:
ARCH = Linux-i386
OS = GNU/Linux
OS_MASTER_VENDOR = fedora
OS_MASTER_VERSION = 7
OS_MASTER_VENDOR_ARCH = fedora/x86_64
OS_MASTER_VENDOR_VERSION = fedora/7
OS_MASTER_VENDOR_VERSION_ARCH = fedora/7/x86_64
OS_VENDOR = centos
OS_VERSION = 7
OS_VENDOR_ARCH = centos/x86_64
OS_VENDOR_VERSION = centos/7
OS_VENDOR_VERSION_ARCH = centos/7/x86_64
Configuration tree:
Linux-i386.conf : missing/empty
GNU/Linux.conf : OK
fedora.conf : missing/empty
fedora/x86_64.conf : missing/empty
fedora/7.conf : missing/empty
fedora/7/x86_64.conf : missing/empty
centos.conf : missing/empty
centos/x86_64.conf : missing/empty
centos/7.conf : missing/empty
centos/7/x86_64.conf : missing/empty
site.conf : missing/empty
local.conf : OK
13
Upgrade-ux help
$ sudo opt/upgrade-ux/bin/upgrade-ux help
Usage: upgrade-ux [-dDFsSpvV] [-c DIR ] COMMAND [-- ARGS...]
upgrade-ux comes with ABSOLUTELY NO WARRANTY; for details see
the GNU General Public License at: http://www.gnu.org/licenses/gpl.html
Available options:
-c DIR alternative config directory; instead of /etc/opt/upgrade-ux
-d debug mode; log debug messages
-D debugscript mode; log every function call
-F forcing preview or upgrade to continue when entering next
stage is not allowed
-s simulation mode; show what scripts upgrade-ux would include
-S step-by-step mode; acknowledge each script individually
-p preview mode; run all install or other commands in preview
-v verbose mode; show more output
-V version information
List of commands:
dump dump configuration and system information
mkdist create a compressed tar archive distribution
purgelogs purge the LOG [var/opt/upgrade-ux/log] directory
test a simple test workflow
upgrade upgrade the operating system
14
scripts
The main paths within
upgrade-ux
root
/
/opt/upgrade-ux /etc/opt/upgrade-ux /var/opt/upgrade-ux
bin GNU yyyy-mm-ddlog
upgrade-uxupgrade-ux Linux.conf status
Linux-centos-7-2015.ini
15
scripts
Where are the scripts?
root
/
/opt/upgrade-ux
bin
install
docmanlib
postexecutepreinstallprep postinstall ...
stages
16
Running upgrade-ux
● /opt/upgrade-ux/bin/upgrade-ux -vp
– When successful re-run without the “p” option
– If it fails it will tell you and give some clues
– Restart it again to continue 'till the end
● Try it out : fully functional for HP-UX
● Working on the Linux tree
● Feedback is always welcome
● More info at
http://www.it3.be/projects/upgrade-ux.html

Weitere ähnliche Inhalte

Was ist angesagt?

Your first dive into systemd!
Your first dive into systemd!Your first dive into systemd!
Your first dive into systemd!
Etsuji Nakai
 

Was ist angesagt? (20)

Your first dive into systemd!
Your first dive into systemd!Your first dive into systemd!
Your first dive into systemd!
 
005 skyeye
005 skyeye005 skyeye
005 skyeye
 
Diving into SWUpdate: adding new platform support in 30minutes with Yocto/OE !
Diving into SWUpdate: adding new platform support in 30minutes with Yocto/OE !Diving into SWUpdate: adding new platform support in 30minutes with Yocto/OE !
Diving into SWUpdate: adding new platform support in 30minutes with Yocto/OE !
 
olf10
olf10olf10
olf10
 
Introduction to Modern U-Boot
Introduction to Modern U-BootIntroduction to Modern U-Boot
Introduction to Modern U-Boot
 
Systemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to loveSystemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to love
 
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
 
Gnubs-pres-foss-cdac-sem
Gnubs-pres-foss-cdac-semGnubs-pres-foss-cdac-sem
Gnubs-pres-foss-cdac-sem
 
U-Boot presentation 2013
U-Boot presentation  2013U-Boot presentation  2013
U-Boot presentation 2013
 
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily JobLuca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
Luca Ceresoli - Buildroot vs Yocto: Differences for Your Daily Job
 
Beagleboard xm-setup
Beagleboard xm-setupBeagleboard xm-setup
Beagleboard xm-setup
 
Linux Containers From Scratch: Makfile MicroVPS
Linux Containers From Scratch: Makfile MicroVPSLinux Containers From Scratch: Makfile MicroVPS
Linux Containers From Scratch: Makfile MicroVPS
 
Build Your Own Android Tablet
Build Your Own Android TabletBuild Your Own Android Tablet
Build Your Own Android Tablet
 
Lavigne sept11 bsdmag
Lavigne sept11 bsdmagLavigne sept11 bsdmag
Lavigne sept11 bsdmag
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
BeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream ComponentsBeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream Components
 
Introduction to systemd
Introduction to systemdIntroduction to systemd
Introduction to systemd
 
Effective service and resource management with systemd
Effective service and resource management with systemdEffective service and resource management with systemd
Effective service and resource management with systemd
 
Kernel Recipes 2013 - Conditional boot
Kernel Recipes 2013 - Conditional bootKernel Recipes 2013 - Conditional boot
Kernel Recipes 2013 - Conditional boot
 
Tlf2013
Tlf2013Tlf2013
Tlf2013
 

Andere mochten auch

Andere mochten auch (14)

Leyes de circuitos electricos ohm
Leyes de circuitos electricos ohmLeyes de circuitos electricos ohm
Leyes de circuitos electricos ohm
 
Protected Wreck Sites at Risk
Protected Wreck Sites at RiskProtected Wreck Sites at Risk
Protected Wreck Sites at Risk
 
NEFA Conference LTI Transaction Example 2
NEFA Conference   LTI Transaction Example 2NEFA Conference   LTI Transaction Example 2
NEFA Conference LTI Transaction Example 2
 
SOS MATA ATLÂNTICA
SOS MATA ATLÂNTICASOS MATA ATLÂNTICA
SOS MATA ATLÂNTICA
 
1 normen en waarden
1 normen en waarden1 normen en waarden
1 normen en waarden
 
Introduction To LTI
Introduction To LTIIntroduction To LTI
Introduction To LTI
 
Exploring I Pv6
Exploring I Pv6Exploring I Pv6
Exploring I Pv6
 
Cfg2html fosdem2014
Cfg2html fosdem2014Cfg2html fosdem2014
Cfg2html fosdem2014
 
Business Continuity Planning with Bareos and rear (Loadays 2015)
Business Continuity Planning with Bareos and rear (Loadays 2015)Business Continuity Planning with Bareos and rear (Loadays 2015)
Business Continuity Planning with Bareos and rear (Loadays 2015)
 
Linux Disaster Recovery Best Practices with rear
Linux Disaster Recovery Best Practices with rearLinux Disaster Recovery Best Practices with rear
Linux Disaster Recovery Best Practices with rear
 
The Democratic Republic Of The Congo
The Democratic Republic Of The CongoThe Democratic Republic Of The Congo
The Democratic Republic Of The Congo
 
Innovative Approaches to Marine Heritage Management
Innovative Approaches to Marine Heritage ManagementInnovative Approaches to Marine Heritage Management
Innovative Approaches to Marine Heritage Management
 
Tommy Moloney's
Tommy Moloney'sTommy Moloney's
Tommy Moloney's
 
Linux Disaster Recovery Solutions
Linux Disaster Recovery SolutionsLinux Disaster Recovery Solutions
Linux Disaster Recovery Solutions
 

Ähnlich wie Upgrade ux-fosdem-2015-gdhaese

Steps to build and run oai
Steps to build and run oaiSteps to build and run oai
Steps to build and run oai
ssuser38b887
 
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2   Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Adil Khan
 

Ähnlich wie Upgrade ux-fosdem-2015-gdhaese (20)

An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
HP-UX Dynamic Root Disk vs Solaris Live Upgrade vs AIX Multibos by Dusan Balj...
HP-UX Dynamic Root Disk vs Solaris Live Upgrade vs AIX Multibos by Dusan Balj...HP-UX Dynamic Root Disk vs Solaris Live Upgrade vs AIX Multibos by Dusan Balj...
HP-UX Dynamic Root Disk vs Solaris Live Upgrade vs AIX Multibos by Dusan Balj...
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Lavigne bsdmag july
Lavigne bsdmag julyLavigne bsdmag july
Lavigne bsdmag july
 
Lavigne bsdmag july
Lavigne bsdmag julyLavigne bsdmag july
Lavigne bsdmag july
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Linux
LinuxLinux
Linux
 
LinuxTraining_3.pptx
LinuxTraining_3.pptxLinuxTraining_3.pptx
LinuxTraining_3.pptx
 
Steps to build and run oai
Steps to build and run oaiSteps to build and run oai
Steps to build and run oai
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
 
Dru lavigne servers-tutorial
Dru lavigne servers-tutorialDru lavigne servers-tutorial
Dru lavigne servers-tutorial
 
Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)
 
PHP selber bauen
PHP selber bauenPHP selber bauen
PHP selber bauen
 
Continuous delivery with docker
Continuous delivery with dockerContinuous delivery with docker
Continuous delivery with docker
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev Machine
 
Release notes 3_d_v61
Release notes 3_d_v61Release notes 3_d_v61
Release notes 3_d_v61
 
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2   Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 

Kürzlich hochgeladen

%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 

Kürzlich hochgeladen (20)

AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 

Upgrade ux-fosdem-2015-gdhaese

  • 1. 1 Upgrade-ux Open Source framework to patch, update or upgrade your Operating System (HP-UX, Linux, Solaris,...) http://www.it3.be/projects/upgrade-ux.html Gratien D'haese
  • 2. 2 Gratien D'haese ● E-mail: gratien . dhaese @ gmail . com ● URL: http://www.it3.be ● Independent UNIX Consultant ● Over 25 years of experience with UNIX and Linux ● Involved with several Open Source Projects: – relax-and-recover (rear), – cfg2html, wbemextras, adhocr, – mkCDrec, upgrade-ux,...
  • 4. 4 Why (again) another tool? ● Upgrade-ux prevents avoidable errors – Patching the wrong Operating System – Gather evidence before/after patching – Double checks if all requirements are met – Cannot skip a step (unless you force it) – Check system health so it can handle an update and survive a reboot – Logging is extremely important for audit and troubleshooting (if required afterwards)
  • 5. 5 Benefits of upgrade-ux ● Impossible to install any software when “preview” run was not successful ● Works with stages and is configurable via configuration files and an INI file ● Framework is borrowed from relax-and- recover (rear) project ● Repeatable (as it remembers the stages it executed successfully)
  • 6. 6 Benefits of upgrade-ux (cont.) ● After rebooting you can just continue ● Upgrade-ux is completely written in ksh ● Extremely modular (scripts are only a few lines long) ● Easy to modify and extend to your needs ● Is Open Source: https://github.com/gdha/upgrade-ux
  • 7. 7 Upgrade-ux requirements ● Using Korn Shell language instead of bash (so same framework works on HP-UX, Solaris, AIX, OS/X, and Linux) ● If ksh is not present: $ sudo opt/upgrade-ux/bin/upgrade-ux dump sudo: unable to execute opt/upgrade- ux/bin/upgrade-ux: No such file or directory ● The RPM/DEB package has ksh as a pre-requisite ● Manual install ksh: $ sudo yum install ksh ● Root privileges
  • 8. 8 Installing upgrade-ux ● The sources via git: git clone https://github.com/gdha/upgrade-ux.git ● Install the rpm/deb ● To create a rpm/deb: – $ cd packaging/Linux – $ make rpm – $ make deb
  • 9. 9 Upgrade-ux Stages ● Store the INI file as (.)/etc/opt/upgrade-ux/${OS}-${OSver}-${YEAR}.ini ● Stages known are (can be empty or not existing): – Preremove – Preinstall – Install – Postinstall – Postremove – Configure – Cleanup – Postexecute
  • 10. 10 Upgrade-ux INI file ● We should have at least [install] section defined ● Example of install definition on HP-UX 11.31: [install] command[0] = $SWINSTALL options[0] = "-x mount_all_filesystems=false" source[0] = "-s $SDSERVER:/var/opt/depots/upd11- 31-may2014" bundle[0] = Update-UX version[0] = ""
  • 11. 11 Upgrade-ux configuration files ● Operating System related config files – HP-UX.conf or GNU/Linux.conf ● Architecture related config files – Linux-i386.conf ● Local config file – local.conf or site.conf ● Use upgrade-ux dump to see the details of your system
  • 12. 12 Upgrade-ux dump $ sudo opt/upgrade-ux/bin/upgrade-ux dump upgrade-ux 1.2 / Git Using log file: /home/gdha/projects/upgrade-ux/var/opt/upgrade-ux/log/upgrade-ux-20150109-1548- LOGFILE.log Dumping out configuration and system information This is a 'Linux-x86_64' system, compatible with 'Linux-i386'. System definition: ARCH = Linux-i386 OS = GNU/Linux OS_MASTER_VENDOR = fedora OS_MASTER_VERSION = 7 OS_MASTER_VENDOR_ARCH = fedora/x86_64 OS_MASTER_VENDOR_VERSION = fedora/7 OS_MASTER_VENDOR_VERSION_ARCH = fedora/7/x86_64 OS_VENDOR = centos OS_VERSION = 7 OS_VENDOR_ARCH = centos/x86_64 OS_VENDOR_VERSION = centos/7 OS_VENDOR_VERSION_ARCH = centos/7/x86_64 Configuration tree: Linux-i386.conf : missing/empty GNU/Linux.conf : OK fedora.conf : missing/empty fedora/x86_64.conf : missing/empty fedora/7.conf : missing/empty fedora/7/x86_64.conf : missing/empty centos.conf : missing/empty centos/x86_64.conf : missing/empty centos/7.conf : missing/empty centos/7/x86_64.conf : missing/empty site.conf : missing/empty local.conf : OK
  • 13. 13 Upgrade-ux help $ sudo opt/upgrade-ux/bin/upgrade-ux help Usage: upgrade-ux [-dDFsSpvV] [-c DIR ] COMMAND [-- ARGS...] upgrade-ux comes with ABSOLUTELY NO WARRANTY; for details see the GNU General Public License at: http://www.gnu.org/licenses/gpl.html Available options: -c DIR alternative config directory; instead of /etc/opt/upgrade-ux -d debug mode; log debug messages -D debugscript mode; log every function call -F forcing preview or upgrade to continue when entering next stage is not allowed -s simulation mode; show what scripts upgrade-ux would include -S step-by-step mode; acknowledge each script individually -p preview mode; run all install or other commands in preview -v verbose mode; show more output -V version information List of commands: dump dump configuration and system information mkdist create a compressed tar archive distribution purgelogs purge the LOG [var/opt/upgrade-ux/log] directory test a simple test workflow upgrade upgrade the operating system
  • 14. 14 scripts The main paths within upgrade-ux root / /opt/upgrade-ux /etc/opt/upgrade-ux /var/opt/upgrade-ux bin GNU yyyy-mm-ddlog upgrade-uxupgrade-ux Linux.conf status Linux-centos-7-2015.ini
  • 15. 15 scripts Where are the scripts? root / /opt/upgrade-ux bin install docmanlib postexecutepreinstallprep postinstall ... stages
  • 16. 16 Running upgrade-ux ● /opt/upgrade-ux/bin/upgrade-ux -vp – When successful re-run without the “p” option – If it fails it will tell you and give some clues – Restart it again to continue 'till the end ● Try it out : fully functional for HP-UX ● Working on the Linux tree ● Feedback is always welcome ● More info at http://www.it3.be/projects/upgrade-ux.html