Commit Graph

13 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 17096ae22e installer: use logging
Use logging facility for all logging activities in installer
to console and to the file. Do not use direct print or write
to file and do not use journald.

Extra: remove deprecated and not used files

Change-Id: Ic41817589c55178634af8e15443079cd78454203
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8093
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2019-09-26 20:41:51 -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
Him Kalyan Bordoloi 5ed3277a08 dualboot: install bios and efi in separate partitions
Change-Id: I819ac3888f82d97352ff58c2fb4b52a66ea76921
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6165
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-05-23 17:13:50 -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 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
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
mbassiouny c3771c3512 Adding partitioning support in kickstart configuation
* Ability to specicy partitions layout in the ks configuration file.
* Example of the configration:
"partitions": [
    {"mountpoint": "/", "size": 0, "filesystem": "ext4"},
    {"mountpoint": "/boot", "size": 128, "filesystem": "ext4"},
    {"mountpoint": "/root", "size": 128, "filesystem": "ext4"},
    {"size": 128, "filesystem": "swap"}
]
* Constrains:
1. You should have one and only one root mount point.
2. No mount point under /boot directory

Change-Id: If3bb9ca0d2862f497868160878cf0ffc2a61403d
Reviewed-on: http://photon-jenkins.eng.vmware.com/135
Reviewed-by: Sharath George
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
2015-11-16 21:18:42 -08:00
Touseef Liaqat 4d53ba0374 OSTree Host and Server installation options in added in ASP Installer. 2015-07-29 15:24:25 -07:00
Mahmoud Bassiouny bc5839901f Removing dparted from the installer.
* Removing the dependency of the dparted in the installer.
* Unblocking installation on bare-metal.
2015-07-23 03:31:05 -07:00
Mahmoud Bassiouny bc3b375f04 Adding license agreement screen in the installer 2015-04-16 23:41:53 -07:00
Mahmoud Bassiouny f4d17450ce Initial commit 2015-04-15 11:00:13 -07:00