diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-07-15 23:09:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-07-15 23:09:49 +0100 |
commit | 3f3b523a5c90dfb76019964a235c12f1279f4b95 (patch) | |
tree | 092737fc1a4b89b63955d7558aa541cd51cb367f /app-admin/calamares/files/calamares-3.1.1-luks-fstab-write-devmapper.patch | |
parent | 0be566b637e026aea6ae9638204614e425cbdbeb (diff) |
app-admin/calamares : version bump
Diffstat (limited to 'app-admin/calamares/files/calamares-3.1.1-luks-fstab-write-devmapper.patch')
-rw-r--r-- | app-admin/calamares/files/calamares-3.1.1-luks-fstab-write-devmapper.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app-admin/calamares/files/calamares-3.1.1-luks-fstab-write-devmapper.patch b/app-admin/calamares/files/calamares-3.1.1-luks-fstab-write-devmapper.patch new file mode 100644 index 00000000..6b6845d8 --- /dev/null +++ b/app-admin/calamares/files/calamares-3.1.1-luks-fstab-write-devmapper.patch @@ -0,0 +1,30 @@ +diff -Nur a/src/modules/fstab/main.py b/src/modules/fstab/main.py +--- a/src/modules/fstab/main.py 2016-11-25 17:38:49.000000000 +0000 ++++ b/src/modules/fstab/main.py 2017-06-02 15:46:38.124863165 +0100 +@@ -257,12 +257,20 @@ + check=check, + ) + +- return dict(device="UUID=" + partition["uuid"], +- mount_point=mount_point or "swap", +- fs=filesystem, +- options=options, +- check=check, +- ) ++ if "luksMapperName" in partition: ++ return dict(device="/dev/mapper/" + partition["luksMapperName"], ++ mount_point=mount_point or "swap", ++ fs=filesystem, ++ options=options, ++ check=check, ++ ) ++ else: ++ return dict(device="UUID=" + partition["uuid"], ++ mount_point=mount_point or "swap", ++ fs=filesystem, ++ options=options, ++ check=check, ++ ) + + def print_fstab_line(self, dct, file=None): + """ Prints line to '/etc/fstab' file. """ |