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
841c6823
Commit
841c6823
authored
Sep 30, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: check if the devce itself is mounted
this will filter out loop0 device
parent
f0f794a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
setup-disk.in
setup-disk.in
+1
-0
No files found.
setup-disk.in
View file @
841c6823
...
@@ -149,6 +149,7 @@ has_mounted_part() {
...
@@ -149,6 +149,7 @@ has_mounted_part() {
# parse /proc/mounts for mounted devices
# parse /proc/mounts for mounted devices
for
p
in
$(
awk
'$1 ~ /^\/dev\// {gsub("/dev/", "", $1); print $1}'
\
for
p
in
$(
awk
'$1 ~ /^\/dev\// {gsub("/dev/", "", $1); print $1}'
\
/proc/mounts
)
;
do
/proc/mounts
)
;
do
[
"
$p
"
=
"
$1
"
]
&&
return
0
[
-e
/sys/block/
$1
/
$p
]
&&
return
0
[
-e
/sys/block/
$1
/
$p
]
&&
return
0
done
done
return
1
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