Fix CI
- 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:
parent
f06b8a7580
commit
b2505df501
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user