Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
ecf3914a
Commit
ecf3914a
authored
Oct 12, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: fix for detecting cciss disks
see #179
parent
6610f2dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
setup-disk.in
setup-disk.in
+4
-2
No files found.
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