daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Jun 30th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         partitions=
  2.         open_dialog PARTITIONS
  3.         while { read_line num id size type fs path name; [ "$id" ]; }; do
  4.                 [ "$fs" != free ] || continue
  5.                 partitions="$partitions $id"
  6.         done
  7.         close_dialog
  8.  
  9.         for id in $partitions; do
  10.                 [ -f $id/method ] || continue
  11.                 method=$(cat $id/method)
  12.                 if [ "$method" = swap ]; then
  13.                         # Unsafe swap! Abort commit
  14.                         db_fset partman-crypto/unsafe_swap seen false
  15.                         db_input critical partman-crypto/unsafe_swap
  16.                         db_go || true
  17.                         exit 1
  18.                 fi
  19.         done
RAW Paste Data
Top