Skip to content
Snippets Groups Projects
Commit c3e5d47e authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Handle Linux cases where /etc/fstab does not exist

Prior to this patch, the use_persistent_block_device_names sysprep would
trigger a exception if applied on CoreOS Linux because of the lack of
/etc/fstab.
parent 0d24609f
No related branches found
No related tags found
No related merge requests found
......@@ -288,6 +288,9 @@ class Linux(Unix):
device references with UUIDs.
"""
if not self.image.g.is_file('/etc/fstab'):
self.out.warn("Omitted! File: `/etc/fstab' does not exist")
# convert all devices in fstab to persistent
persistent_root = self._persistent_fstab()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment