69 lines
3.0 KiB
YAML
69 lines
3.0 KiB
YAML
---
|
|
# The dracut patch is an issue uniquely bound to the fact that I'm using several
|
|
# old-as-shit hardware RAID cards. Specifically the Dell PERC H200 and the Dell PERC
|
|
# H310, both of which had their hardware drivers dropped in Cent8 (despite the drivers
|
|
# being included in the upstream fedora kernel, but whatever). OS installation and the
|
|
# process in this set of tasks is based off of this blog post:
|
|
# https://www.centos.org/forums/viewtopic.php?t=71862#p302447
|
|
#
|
|
# TODO: Host the RPMs locally. The internet may never forget, but it's also never there
|
|
# when you need it
|
|
#
|
|
# NOTE: These tasks only need to be run on Cent8
|
|
#
|
|
|
|
- name: Determine dracut version
|
|
shell:
|
|
cmd: rpm -qa | grep dracut-[0-9]
|
|
warn: false
|
|
register: dracut_version_check
|
|
|
|
- name: Install patched version of dracut
|
|
when: dracut_version_check.stdout != "dracut-049-13.git20190614.p1.el8_0.elrepo.x86_64"
|
|
block:
|
|
- name: Create temporary download directory
|
|
file:
|
|
path: /tmp/dracut-patch
|
|
state: directory
|
|
|
|
- name: Download patched dracut tool RPMs
|
|
get_url:
|
|
url: "{{ item.source }}"
|
|
dest: /tmp/dracut-patch/{{ item.dest }}
|
|
loop:
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut.rpm
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-caps-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut-caps.rpm
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-config-generic-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut-config-generic.rpm
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-config-rescue-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut-config-rescue.rpm
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-live-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut-live.rpm
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-network-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut-network.rpm
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-squash-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut-squash.rpm
|
|
- source: http://elrepo.org/people/akemi/testing/el8/dracut/dracut-tools-049-13.git20190614.p1.el8_0.elrepo.x86_64.rpm
|
|
dest: dracut-tools.rpm
|
|
|
|
- name: Install patched dracut toolchain
|
|
become: true
|
|
dnf:
|
|
state: latest
|
|
name:
|
|
- /tmp/dracut-patch/dracut.rpm
|
|
- /tmp/dracut-patch/dracut-caps.rpm
|
|
- /tmp/dracut-patch/dracut-config-generic.rpm
|
|
- /tmp/dracut-patch/dracut-config-rescue.rpm
|
|
- /tmp/dracut-patch/dracut-live.rpm
|
|
- /tmp/dracut-patch/dracut-network.rpm
|
|
- /tmp/dracut-patch/dracut-squash.rpm
|
|
- /tmp/dracut-patch/dracut-tools.rpm
|
|
|
|
- name: Remove temporary download directory
|
|
file:
|
|
path: /tmp/dracut-patch
|
|
state: absent
|