diff --git a/system/crypttab.py b/system/crypttab.py index d483e339631..842b5bc7d09 100755 --- a/system/crypttab.py +++ b/system/crypttab.py @@ -205,6 +205,8 @@ class Crypttab(object): for line in self._lines: lines.append(str(line)) crypttab = '\n'.join(lines) + if len(crypttab) == 0: + crypttab += '\n' if crypttab[-1] != '\n': crypttab += '\n' return crypttab