SHARE
TWEET
Untitled
a guest
Jun 30th, 2017
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- partitions=
- open_dialog PARTITIONS
- while { read_line num id size type fs path name; [ "$id" ]; }; do
- [ "$fs" != free ] || continue
- partitions="$partitions $id"
- done
- close_dialog
- for id in $partitions; do
- [ -f $id/method ] || continue
- method=$(cat $id/method)
- if [ "$method" = swap ]; then
- # Unsafe swap! Abort commit
- db_fset partman-crypto/unsafe_swap seen false
- db_input critical partman-crypto/unsafe_swap
- db_go || true
- exit 1
- fi
- done
RAW Paste Data
