Advertisement
Guest User

Untitled

a guest
Jun 30th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.64 KB | None | 0 0
  1. --- ./d-i/source/partman-crypto/check.d/unsafe_swap 2015-12-22 13:11:28.000000000 -0800
  2. +++ ./d-i/source/partman-crypto/check.d/detects_zram    2017-06-30 18:38:36.170316257 -0700
  3. @@ -31,12 +31,18 @@
  4.     if echo $device | grep -q "^/dev/mapper/"; then
  5.         if dm_is_safe "$device"; then
  6.             continue
  7.         fi
  8.     fi
  9.  
  10. +   # zram isn't disk-backed swap, so unsafe_swap doesn't
  11. +   # straightforwardly apply
  12. +   if echo $device | grep -q "^/dev/zram"; then
  13. +       continue
  14. +   fi
  15. +
  16.     partitions=
  17.     open_dialog PARTITIONS
  18.     while { read_line num id size type fs path name; [ "$id" ]; }; do
  19.         [ "$fs" != free ] || continue
  20.         partitions="$partitions $id"
  21.     done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement