Browse files

Don't present /dev/sr[0-9] drives for partitioning

  • Loading branch information...
1 parent 426266d commit 4705ea83e5316ab05e9fa6881bd8e449eec9047b @gapan committed Aug 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 initrd-scripts/usr-lib-setup/SeTdisk
View
1 initrd-scripts/usr-lib-setup/SeTdisk
@@ -7,6 +7,7 @@ for dev in "$( cat /proc/partitions \
| grep -v 'name' \
| grep -v 'ram' \
| grep -v 'loop' \
+ | grep -v 'sr[0-9]' \
| sed -e 's/^[ \t]*[0-9]*[ \t]*[0-9]*[ \t]*[0-9]*[ \t]*\(\([a-z]*\)[0-9]*[^0-9]*\|\([a-z\/]*[0-9]*[a-z]*[0-9]*\).*\)$/\2\3 disk \"\"/' | sort -u )" ; do
dglist="$dglist $dev"

0 comments on commit 4705ea8

Please sign in to comment.