From 28e6cf50d173422d7b544eb72a53375a37f605b9 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Fri, 20 Feb 2026 20:12:59 +0100 Subject: [PATCH] fix(bootstrap): add devpts mount and use ephemeral state for RHEL DVD --- roles/bootstrap/tasks/main.yml | 1 + roles/bootstrap/tasks/rhel.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml index 3a01640..ab241fd 100644 --- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -22,6 +22,7 @@ - { src: proc, path: proc, fstype: proc } - { src: sysfs, path: sys, fstype: sysfs } - { src: /dev, path: dev, fstype: none, opts: bind } + - { src: devpts, path: dev/pts, fstype: devpts, opts: "gid=5,mode=620" } - name: Run OS-specific bootstrap process vars: diff --git a/roles/bootstrap/tasks/rhel.yml b/roles/bootstrap/tasks/rhel.yml index adad061..d0a77bf 100644 --- a/roles/bootstrap/tasks/rhel.yml +++ b/roles/bootstrap/tasks/rhel.yml @@ -25,7 +25,7 @@ path: /mnt/usr/local/install/redhat/dvd fstype: none opts: bind - state: mounted + state: ephemeral - name: Rebuild RPM database inside chroot ansible.builtin.command: "{{ chroot_command }} rpm --rebuilddb"