ext2 387 B

123456789101112
  1. #!/bin/sh
  2. echo "WARNING: The check script $0 is depreciated. Please use check script blkid instead." >&2
  3. not_fs=""
  4. for fs in ext2 ext3 ext4 ext4dev; do
  5. /lib/cryptsetup/checks/blkid "$1" "$fs" >/dev/null || not_fs="$not_fs $fs"
  6. done
  7. if [ "$not_fs" = " ext2 ext3 ext4 ext4dev" ]; then
  8. echo " - The device $1 does not contain a valid ext2, ext3, ext4 or ext4dev filesystem."
  9. exit 1
  10. fi