Skip to content

Commit

Permalink
Do not pollute the logs when looking for swap partitions.
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Amadori <amadorim@vdavda.com>
  • Loading branch information
Marco Amadori committed Oct 2, 2008
1 parent 938b9a3 commit 8c74393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live-bottom/13swap
Expand Up @@ -41,7 +41,7 @@ do
continue
fi

/lib/udev/vol_id ${device%%[0-9]*} | grep -q "^ID_FS_USAGE=raid" && continue
/lib/udev/vol_id ${device%%[0-9]*} 2>/dev/null | grep -q "^ID_FS_USAGE=raid" && continue

magic=$(/bin/dd if="${device}" bs=4086 skip=1 count=1 2>/dev/null | /bin/dd bs=10 count=1 2>/dev/null) || continue

Expand Down

0 comments on commit 8c74393

Please sign in to comment.