Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preinstall task tries to remove entry from non-existing fstab on fedora core #10581

Closed
vesnikos opened this issue Nov 1, 2023 · 4 comments · Fixed by #10587 or #10751
Closed

preinstall task tries to remove entry from non-existing fstab on fedora core #10581

vesnikos opened this issue Nov 1, 2023 · 4 comments · Fixed by #10587 or #10751
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@vesnikos
Copy link

vesnikos commented Nov 1, 2023

Task 0010-swapoff.yml is trying to remove swap entry from /etc/fstab file as seen bellow. Fedora Core afik does not ship with a /etc/fstab causing the task to fail

Mitigation is easy; either a when: not "{{ is_fedora_core | bool }}" entry or ignore_errors: true to the task

- name: Remove swapfile from /etc/fstab
ansible.posix.mount:
name: "{{ item }}"
fstype: swap
state: absent
loop:
- swap
- none

@vesnikos vesnikos added the kind/bug Categorizes issue or PR as related to a bug. label Nov 1, 2023
@VannTen
Copy link
Contributor

VannTen commented Nov 3, 2023

I assume you meant Fedora Coreos ?

@vesnikos
Copy link
Author

vesnikos commented Nov 3, 2023

I assume you meant Fedora Coreos ?

yes; fedora coreos.
Nodes were provisioned using vhdx's for hyper-v.

Without being an authoritive figure on it, fcos favours .mount systemd units as described (or hinted) at their storage documentation

@VannTen
Copy link
Contributor

VannTen commented Nov 3, 2023 via email

@vesnikos
Copy link
Author

vesnikos commented Nov 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
2 participants