blob: bd4e4e705096a54ae4a06b25c5cf5bd8a040c1d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash -
export LANG=C
set -e
# Run virt-list-filesystems.
# Only columns 1 & 2 are guaranteed, we may add more in future.
if [ "$(./virt-list-filesystems -l ../images/fedora.img |
sort | awk '{print $1 $2}')" \
!= \
"/dev/VG/LV1ext2
/dev/VG/LV2ext2
/dev/VG/LV3ext2
/dev/VG/Rootext2
/dev/sda1ext2" ]; then
echo "$0: error: unexpected output from virt-list-filesystems"
exit 1
fi
|