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
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
ee7608c2
Commit
ee7608c2
authored
Apr 07, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: explain that no disks was found unless -q (quiet)
parent
67e75982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
setup-disk.in
setup-disk.in
+7
-3
No files found.
setup-disk.in
View file @
ee7608c2
...
...
@@ -698,11 +698,12 @@ esac
SWAP_SIZE
=
$(
find_swap_size
)
# Parse args
while
getopts
"hk:o:rs:v"
opt
;
do
while
getopts
"hk:o:
q
rs:v"
opt
;
do
case
$opt
in
k
)
KERNEL_FLAVOR
=
"
$OPTARG
"
;;
r
)
USE_RAID
=
1
;;
o
)
APKOVL
=
"
$OPTARG
"
;;
q
)
QUIET
=
1
;;
r
)
USE_RAID
=
1
;;
s
)
SWAP_SIZE
=
"
$OPTARG
"
;;
v
)
VERBOSE
=
1
;;
*
)
usage
;;
...
...
@@ -730,7 +731,10 @@ disks=$(find_disks)
disk
=
none
# no disks so lets exit quietly.
[
-z
"
$disks
"
]
&&
exit
0
if
[
-z
"
$disks
"
]
;
then
[
-z
"
$QUIET
"
]
&&
echo
"No disks found."
>
&2
exit
0
fi
if
[
$#
-gt
0
]
;
then
# check that they are
...
...
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