Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4705ea83e5316ab05e9fa6881bd8e449eec9047b 1 parent 426266d
@gapan authored
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"
Please sign in to comment.
Something went wrong with that request. Please try again.