Skip to content

Commit

Permalink
Fix a problem with blkid in a piece of deadwood
Browse files Browse the repository at this point in the history
This fixes #73 when backported to older releases ;-)
  • Loading branch information
dagwieers committed Jun 8, 2012
1 parent 6f85945 commit 1199ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/share/rear/lib/compatibility-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ elif has_binary udev_volume_id; then
-e "s/^U:\(.*\)/ID_FS_UUID='\1'/" | grep =
}
# NOTE: We use blkid ONLY if it is a newer one and reports information back in udev-style
elif has_binary blkid && blkid -o udev >&8 2>&1; then
# But we need to accept both return code 0, and return code 2 (no partition)
elif has_binary blkid && blkid -o udev >&8 2>&1 || (( $? == 2 )); then
Debug "Using 'blkid' for rear_vol_id"
# since udev 142 vol_id was removed and udev depends on blkid
# blkid -o udev returns the same output as vol_id used to
Expand Down

0 comments on commit 1199ef9

Please sign in to comment.