From 10fa59afd377362f3bc79e3df77df3fef746dedf Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Mon, 29 Sep 2025 15:13:00 +0200 Subject: [PATCH] fix: Allow running on systems without /etc/fstab present When /etc/fstab is not present, we'll simply skip parsing it. Fixes: #557 Resolves: RHEL-115033 --- library/blivet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/blivet.py b/library/blivet.py index f47801f7..8ce12724 100644 --- a/library/blivet.py +++ b/library/blivet.py @@ -2186,6 +2186,9 @@ def parse(self): if self._entries: self.reset() + if not os.path.exists('/etc/fstab'): + return + with open('/etc/fstab') as f: for line in f.readlines(): if line.lstrip().startswith("#"):