- Increase size of ESP partition to allow bigger esp images in debian
bullseye
- Restore correct selinux context for configdrive iso
- Remove skipsdist from tox.ini for compatibility with tox 4

Depends-On: I550dac9d055ec30ec11530f18a675cf9e16063b5

Change-Id: I3871d90aac23704cf95d6bdccd1e213ed97fa149
This commit is contained in:
Riccardo Pittau 2022-12-21 11:30:24 +01:00
parent f06b8a7580
commit b2505df501
4 changed files with 10 additions and 5 deletions

View File

@ -139,3 +139,9 @@
- name: "Set the configdrive URL"
set_fact:
deploy_config_drive: "{{ deploy_url_protocol }}://{{ internal_ip }}:{{ file_url_port }}/configdrive-{{ uuid }}.iso.gz"
- name: "Apply the correct SELinux context to the configdrive iso"
become: yes
command: restorecon -iRv {{ http_boot_folder }}
when: (ansible_os_family == 'RedHat' or ansible_os_family == 'Suse') and
ansible_selinux.status == 'enabled'

View File

@ -202,6 +202,6 @@
- http_boot_folder is defined
- http_boot_folder | length > 0
- name: "Restore proper context on created data for http_boot"
command: restorecon -R {{ http_boot_folder }}
command: restorecon -iRv {{ http_boot_folder }}
when: (ansible_os_family == 'RedHat' or ansible_os_family == 'Suse') and
ansible_selinux.status == 'enabled' and ansible_selinux.mode == "enforcing"
ansible_selinux.status == 'enabled'

View File

@ -22,10 +22,10 @@
register: esp_temp_dir
- name: "Create an empty ESP image"
command: dd if=/dev/zero of={{ esp_image }} bs=4096 count=1024
command: dd if=/dev/zero of={{ esp_image }} bs=8192 count=1024
- name: "Initialize ESP filesystem"
command: mkfs.fat -s 4 -r 512 -S 4096 {{ esp_image }}
command: mkfs.fat -s 4 -r 1024 -S 4096 {{ esp_image }}
- name: "Mount ESP filesystem"
command: mount {{ esp_image }} {{ esp_temp_dir.path }} # noqa 303

View File

@ -1,7 +1,6 @@
[tox]
minversion = 3.18.0
envlist = py3,docs,pep8
skipsdist = True
ignore_basepython_conflict=true
[testenv]