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>
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>
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>
-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>
-- 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>
* 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>