[fstab] Exclude zfs partitions from fstab
This commit is contained in:
parent
af4b87a4cc
commit
b6692341e7
@ -196,7 +196,7 @@ class FstabGenerator(object):
|
|||||||
dct = self.generate_fstab_line_info(mount_entry)
|
dct = self.generate_fstab_line_info(mount_entry)
|
||||||
if dct:
|
if dct:
|
||||||
self.print_fstab_line(dct, file=fstab_file)
|
self.print_fstab_line(dct, file=fstab_file)
|
||||||
else:
|
elif partition["fs"] != "zfs": # zfs partitions don't need an entry in fstab
|
||||||
dct = self.generate_fstab_line_info(partition)
|
dct = self.generate_fstab_line_info(partition)
|
||||||
if dct:
|
if dct:
|
||||||
self.print_fstab_line(dct, file=fstab_file)
|
self.print_fstab_line(dct, file=fstab_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user