From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E62C2E2F16 for ; Mon, 11 Aug 2025 22:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754951097; cv=none; b=DtVGkvwmUC687heikl5zNRtwB5J4GI5SxUQNhJBmUMM2SMgNoQLQHBHRU0mo0BVg9AN9iDcyDWUPKThSrdDiYgL4oxR1zxkXnl2v/9zXrP11f9z5Kozmx+TMSTlPBI7kGIOFQiOKMOGP6RIXJckLe513DANGOMHRSu54vBLiflA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754951097; c=relaxed/simple; bh=ZdsofqDoWY5BN2wUEuPVsIYYgDdiZHHujUcAsri3Vcg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rTL9rouMyOQqZ2oxBoVUFM6Ovhb5+kjkncKLl6mRLw1fMwBGjUcDTIAxiYb1FPqselr8K6vz1VY2rRemIjv7KhS7WVfWtZvg13tLiaS+MFuewYsmxKN7/UDPKgW1/+In+HVF+QOCl0IXgV2cIL74TULCCtKeylW4t35wY8ba91w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=wWDtXJhh; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="wWDtXJhh" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=EDv5/9p5i71SbInWPKCCoLmCCzYIZY0O9QYKi53DCg0=; b=wWDtXJhhsVOlbL2qLSoMvBZf2K yMloUG7Zsfem14if0/7SJrkMQfKusUzWYAg0S3LzIrfNw8BciaXm2UQ16AaJndoD7uA8zsG4vo9RN +6e0iylZb+GMJpdxnpd8f8elTgublrXilb4/2SamxRinSHxxU62vkqwJ59X/5kqTvHNEn0UQFg1Y1 zjOOwCFJD2fOhht0IaLXufVyt2T9hQybaDBg0yEuHmsWZZVCiapfJ+YlIrcR7Jh6jeCeT5HxPMNst fETUzcuvro2E7K4oh/cea3VuJ10w9UulFQbCzpU1OWMmBv0U/+vado2sg2G0zS/6P2+/WGBy4V0oQ wO2SxlZA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ulawn-00000009Hk2-30tD; Mon, 11 Aug 2025 22:24:53 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 15/23] reboot-limit: add kexec-tools dependency installation Date: Mon, 11 Aug 2025 15:24:42 -0700 Message-ID: <20250811222452.2213071-16-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250811222452.2213071-1-mcgrof@kernel.org> References: <20250811222452.2213071-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain Add kexec-tools installation support for the reboot-limit workflow, following the same pattern used by fstests. This ensures kexec is properly installed across all supported distributions (Debian, Red Hat, and SUSE) when the systemctl_kexec test type is enabled. The dependency installation is integrated into the reboot-limit role's main tasks and will be automatically executed during 'make reboot-limit'. Generated-by: Claude AI Signed-off-by: Luis Chamberlain --- .../reboot-limit/tasks/install-deps/debian/main.yml | 10 ++++++++++ .../roles/reboot-limit/tasks/install-deps/main.yml | 12 ++++++++++++ .../reboot-limit/tasks/install-deps/redhat/main.yml | 10 ++++++++++ .../reboot-limit/tasks/install-deps/suse/main.yml | 10 ++++++++++ playbooks/roles/reboot-limit/tasks/main.yml | 4 ++++ 5 files changed, 46 insertions(+) create mode 100644 playbooks/roles/reboot-limit/tasks/install-deps/debian/main.yml create mode 100644 playbooks/roles/reboot-limit/tasks/install-deps/main.yml create mode 100644 playbooks/roles/reboot-limit/tasks/install-deps/redhat/main.yml create mode 100644 playbooks/roles/reboot-limit/tasks/install-deps/suse/main.yml diff --git a/playbooks/roles/reboot-limit/tasks/install-deps/debian/main.yml b/playbooks/roles/reboot-limit/tasks/install-deps/debian/main.yml new file mode 100644 index 00000000..bb4a1130 --- /dev/null +++ b/playbooks/roles/reboot-limit/tasks/install-deps/debian/main.yml @@ -0,0 +1,10 @@ +--- +- name: Install kexec-tools and dependencies for reboot-limit on Debian + become: yes + become_method: sudo + ansible.builtin.apt: + name: + - kexec-tools + state: present + update_cache: yes + tags: [ 'install', 'kexec' ] diff --git a/playbooks/roles/reboot-limit/tasks/install-deps/main.yml b/playbooks/roles/reboot-limit/tasks/install-deps/main.yml new file mode 100644 index 00000000..91304221 --- /dev/null +++ b/playbooks/roles/reboot-limit/tasks/install-deps/main.yml @@ -0,0 +1,12 @@ +--- +- include_role: + name: pkg + +# tasks to install dependencies for reboot-limit +- name: reboot-limit distribution specific setup + import_tasks: tasks/install-deps/debian/main.yml + when: ansible_facts['os_family']|lower == 'debian' +- import_tasks: tasks/install-deps/suse/main.yml + when: ansible_facts['os_family']|lower == 'suse' +- import_tasks: tasks/install-deps/redhat/main.yml + when: ansible_facts['os_family']|lower == 'redhat' diff --git a/playbooks/roles/reboot-limit/tasks/install-deps/redhat/main.yml b/playbooks/roles/reboot-limit/tasks/install-deps/redhat/main.yml new file mode 100644 index 00000000..6d6ded85 --- /dev/null +++ b/playbooks/roles/reboot-limit/tasks/install-deps/redhat/main.yml @@ -0,0 +1,10 @@ +--- +- name: Install kexec-tools and dependencies for reboot-limit on Red Hat + become: yes + become_method: sudo + ansible.builtin.yum: + name: + - kexec-tools + state: present + update_cache: yes + tags: [ 'install', 'kexec' ] diff --git a/playbooks/roles/reboot-limit/tasks/install-deps/suse/main.yml b/playbooks/roles/reboot-limit/tasks/install-deps/suse/main.yml new file mode 100644 index 00000000..07b812c0 --- /dev/null +++ b/playbooks/roles/reboot-limit/tasks/install-deps/suse/main.yml @@ -0,0 +1,10 @@ +--- +- name: Install kexec-tools and dependencies for reboot-limit on SUSE + become: yes + become_method: sudo + ansible.builtin.zypper: + name: + - kexec-tools + state: present + update_cache: yes + tags: [ 'install', 'kexec' ] diff --git a/playbooks/roles/reboot-limit/tasks/main.yml b/playbooks/roles/reboot-limit/tasks/main.yml index 0a85b309..7bf0f573 100644 --- a/playbooks/roles/reboot-limit/tasks/main.yml +++ b/playbooks/roles/reboot-limit/tasks/main.yml @@ -14,6 +14,10 @@ name: create_data_partition tags: [ 'data_partition' ] +- name: Install dependencies for reboot-limit + include_tasks: install-deps/main.yml + tags: [ 'install', 'deps' ] + - name: Create the reboot-limit data collection directory for each host become: yes become_method: sudo -- 2.47.2