Skip to content

Commit 5fc8244

Browse files
oliverkurthGitHub Enterprise
authored andcommitted
Merge pull request #44 from vcf/topic/okurth/remove-ostree
remove ostree support
2 parents 8b63bb5 + abdff38 commit 5fc8244

23 files changed

Lines changed: 43 additions & 871 deletions

docker/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ RUN tdnf ${TDNF_OPTIONS} makecache && \
6060
python3-PyYAML \
6161
python3-rpm \
6262
qemu-img \
63-
open-vmdk ostree rpm-ostree \
63+
open-vmdk \
6464
stig-hardening \
6565
$([ "${TARGETARCH}" == "amd64" ] && echo grub2-pc) && \
6666
rm -rf /var/cache/tdnf
@@ -76,7 +76,6 @@ COPY \
7676
create-ova \
7777
create-repo \
7878
create-azure \
79-
create-ostree \
8079
create-cherrypicks-repo \
8180
create-pkg \
8281
poi-pkglist yjson \

docker/create-ostree

Lines changed: 0 additions & 119 deletions
This file was deleted.

docs/ks_config.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -204,39 +204,6 @@ Multiple disks:
204204
"log_level": "debug"
205205
}
206206
```
207-
### _"ostree":_ (optional)
208-
- Atomic flavour of Photon OS.
209-
- Define the type of repo data used for installing the OS
210-
- There are two type:
211-
1. Default Repo(comes with ISO)
212-
2. Custom Repo (Remote server)
213-
- _"default_repo":_ (required)
214-
- **Boolean:** _true_ or _false_
215-
- _true_ : Default Repo is selected
216-
- _false_: Custom Repo is selected
217-
- **Default value:** _true_
218-
Example:
219-
```json
220-
{
221-
"ostree": {
222-
"default_repo": true
223-
}
224-
}
225-
```
226-
- _"repo_url":_ (Required, Only If Custom Repo is selected)
227-
- **Supported Values:** Valid "repo" URL of remote server where repo data exists
228-
- _"repo_ref":_ (Required, Only If Custom Repo is selected)
229-
- **Supported Value:** Valid "ref" path which was mentioned for
230-
creation of Base Tree on remote server
231-
232-
Example:
233-
```json
234-
{
235-
"ostree": {
236-
"default_repo": false,
237-
"repo_url": "http://<ip>:<port>/repo",
238-
"repo_ref": "photon/4.0/x86_64/minimal"
239-
}
240207
}
241208
```
242209

examples/iso/ostree_ks.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/iso/packages_installer_initrd.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343
"nspr",
4444
"nss",
4545
"open-vm-tools",
46-
"ostree",
47-
"ostree-grub2",
48-
"ostree-libs",
4946
"pcre",
5047
"popt",
5148
"python3",

examples/ova/ostree_ks.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

examples/ova/packages_ostree.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

photon_installer/generate_initrd.py

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def __init__(self, **kwargs):
3636
"photon_release_version",
3737
"pkg_list_file",
3838
"install_options_file",
39-
"ostree_iso",
4039
"initrd_files",
4140
]
4241
for key in kwargs:
@@ -188,14 +187,6 @@ def clean_up(self):
188187
def install_initrd_packages(self):
189188
# nogpgcheck to work around installing locally built packages, like photon-os-installer
190189
tdnf_args = ["--nogpgcheck", "install"] + self.initrd_pkgs
191-
# mount_dirs = []
192-
if self.ostree_iso:
193-
self.tdnf.config_file = None
194-
self.tdnf.reposdir = None
195-
else:
196-
# mount_dirs = [self.rpms_path, self.working_dir]
197-
pass
198-
199190
self.tdnf.run(tdnf_args, do_json=False)
200191

201192
def prepare_installer_dir(self):
@@ -218,20 +209,19 @@ def build_initrd(self):
218209
# Explicitly set permission to 755 as it is ignored when passed through mode= in os.makedirs
219210
os.chmod(self.initrd_path, 0o755)
220211

221-
if not self.ostree_iso:
222-
# Create Local Repo
223-
create_repo_conf(
224-
{
225-
"photon-local": {
226-
"name": "VMWare Photon Linux (x86_64)",
227-
"baseurl": f"file://{self.rpms_path}",
228-
"gpgcheck": 0,
229-
"enabled": 1,
230-
"skip_if_unavailable": True,
231-
}
232-
},
233-
reposdir=self.working_dir,
234-
)
212+
# Create Local Repo
213+
create_repo_conf(
214+
{
215+
"photon-local": {
216+
"name": "VMWare Photon Linux (x86_64)",
217+
"baseurl": f"file://{self.rpms_path}",
218+
"gpgcheck": 0,
219+
"enabled": 1,
220+
"skip_if_unavailable": True,
221+
}
222+
},
223+
reposdir=self.working_dir,
224+
)
235225
self.install_initrd_packages()
236226

237227
with open(

0 commit comments

Comments
 (0)