Commit 3e001101 authored by Natanael Copa's avatar Natanael Copa

setup-disk: don't suggest ramdisks

filter out ramX block devices (major=1)
parent 559ab612
......@@ -425,7 +425,8 @@ is_available_disk() {
find_disks() {
local p=
for p in $(awk '$1 ~ /[0-9]+/ {print $4}' /proc/partitions); do
# filter out ramdisks (major=1)
for p in $(awk '$1 != 1 && $1 ~ /[0-9]+/ {print $4}' /proc/partitions); do
is_available_disk $p && echo -n " $p"
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment