Commit Graph

12 Commits

Author SHA1 Message Date
Alexey Makhalov f42f786030 installer: do not abuse install_config
1) Do not add UI specific fields in install_config which is not used
at execution state, such as custom partition internal information.
Use only install_config['partitions']

2) Do not overwrite install_config['disk'] by partitions data.
Create new field for that: install_config['partitions_data']

3) New class pastitionpane as a sub element of custom partitioning
screen.

4) Rename PartitionISO to CustomPartition to avoid confusion.

5) Cleanup Image Builder.

Change-Id: Id1aef8b18b866ee464bd583c820f92c5037aae71
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8105
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-09-30 14:28:35 -07:00
Alexey Makhalov 661da1302e installer: move partitioning to execution stage
Do not do partitioning in the very beginning of ui config
or at the end of ks config. Merge partitioning code and
move it to installer execution. Remove any partitioning
code from selectdisk ui screen.

Extras:
- deprecate 'vmdk_install' (it is same as 'not iso_installer')
- improve nsurses ui rendering. Avoid unnecessary refresh.
- removed unused param in display() and menu items handlers

Change-Id: I90522da30bb29b452bb68e64e749ab81177875a0
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8088
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2019-09-25 15:10:49 -07:00
suezzelur d07c27b729 Additional improvements to image builder
-Remove the use of photoninstaller.py
-Replace image builder script
-Enhance image builder config file
-Support image building using config files from Makefile
    - make image IMG_NAME=<name>
    - make image CONFIG=<config_file>
    - or combination of both the above

Change-Id: I1a0db70969224826130c5e4c25a74e7217a8dace
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6150
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2018-11-14 17:36:26 -08:00
xiaolin-vmware c533b30802 Clean install code. Limit all lines to a maximum of 99 characters
Change-Id: I9d4758fb6428aa41305a165a076d9156e46b4e42
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4576
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2017-12-28 13:39:44 -08:00
xiaolin-vmware a672bd2436 Python3 isoinstaller.
Change-Id: I27fc8cd53b8cea2700b8d4ed47a78f71ce4b9469
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4325
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2017-12-27 11:13:22 -08:00
xiaolin-vmware c7dd4da8d5 installer : check if /etc/resolv.conf exists before copying, remove unused import.
Change-Id: Iff87c0f9a6d84713a5957fa6fde56894df868176
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3973
Reviewed-by: Bo Gan <ganb@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2017-10-06 10:06:31 -07:00
xiaolin-vmware 0c250142d7 installer:
-- remove unused shebangs.
-- interger division with operator //
-- replace Set with set.
-- replace `` with repr.
-- replace has_key with in

Change-Id: I8ef92b42cb1a4477eb8be23da6a86499a3436876
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3860
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
2017-10-03 12:34:52 -07:00
xiaolin-vmware bbfff61b69 iso installer: alignment in license page.
Change-Id: I217cb2e11b815d7286c478b1f1a841791c9fec27
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3838
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>
2017-10-02 09:38:40 -07:00
xiaolin-vmware 286a6cae72 iso installer: Fix the issues in License page caused by tab and leading spaces. (Bug 1958175)
Change-Id: I0acb94ce9127214069b78e5f858e321351298268
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3822
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>
Reviewed-by: Sharath George
2017-09-22 10:38:20 -07:00
yangyao2 72832a72f4 modified ui with tab removed, and disk partitioning
Change-Id: I4b459f3bc2c81fa6b48cbf110f61be0667086144
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1625
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>
2016-11-04 16:38:01 -07:00
dthaluru bb4b7c319d Updating license
Change-Id: I2f8f5babdae8415ec5285bdea15d45307cc257c7
Reviewed-on: http://photon-jenkins.eng.vmware.com/784
Reviewed-by: Mahmoud Bassiouny <mbassiouny@vmware.com>
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
2016-05-02 10:46:34 -07:00
Mahmoud Bassiouny bc3b375f04 Adding license agreement screen in the installer 2015-04-16 23:41:53 -07:00