Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
alpine-conf
Commits
ecf3914a
Commit
ecf3914a
authored
Oct 12, 2009
by
Natanael Copa
Browse files
setup-disk: fix for detecting cciss disks
see #179
parent
6610f2dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
ecf3914a
...
...
@@ -58,10 +58,12 @@ is_vmware() {
# Find the disk device from given partition
disk_from_part
()
{
local
i
=
part
=
${
1
#/dev/
}
# we need convert cciss/c0d0* cciss!c0d0*...
local
i
=
part
=
$(
echo
${
1
#/dev/
}
|
sed
's:/:!:g'
)
for
i
in
/sys/block/
*
/
$part
;
do
i
=
${
i
%/*
}
echo
"/dev/
${
i
##*/
}
"
# ...and back from cciss!c0d0 to cciss/c0d0
echo
"/dev/
${
i
##*/
}
"
|
sed
's:!:/:g'
return
0
done
return
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment