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
78d5d2fe
Commit
78d5d2fe
authored
May 06, 2015
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: give option to use lvm
Give the option so enable lvm when asking how o use selected disk
parent
3d93bc1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
setup-disk.in
setup-disk.in
+20
-3
No files found.
setup-disk.in
View file @
78d5d2fe
...
...
@@ -832,7 +832,7 @@ __EOF__
diskmode_help
()
{
cat
<<
__EOF__
You can select between 'sys'
or '
data'.
You can select between 'sys'
, 'data', 'lvm', 'lvmsys' or 'lvm
data'.
sys:
This mode is a traditional disk install. The following partitions will be
...
...
@@ -847,6 +847,15 @@ data:
Use this mode if you only want to use the disk(s) for a mailspool, databases,
logs, etc.
lvm:
Enable logical volume manager and ask again for 'sys' or 'data'.
lvmsys:
Same as 'sys' but use logical volume manager for partitioning.
lvmdata:
Same as 'data' but use logical volume manager for partitioning.
__EOF__
}
...
...
@@ -993,13 +1002,21 @@ if [ -n "$diskdevs" ] && [ -z "$DISK_MODE" ]; then
fi
while
true
;
do
echo
"The following
$disk_is_or_disks_are
selected:"
echo
"The following
$disk_is_or_disks_are
selected
${
USE_LVM
:+
(with LVM)
}
:"
show_disk_info
$diskdevs
echon
"How would you like to use
$it_them
? ('sys', 'data' or '?' for help) [?] "
local
_lvm
=
${
USE_LVM
:-
", 'lvm'"
}
echon
"How would you like to use
$it_them
? ('sys', 'data'
${
_lvm
#_lvm
}
or '?' for help) [?] "
default_read answer
'?'
case
"
$answer
"
in
'?'
)
diskmode_help
;;
sys|data
)
break
;;
lvm
)
USE_LVM
=
"_lvm"
;;
nolvm
)
USE_LVM
=
""
;;
lvmsys|lvmdata
)
answer
=
${
answer
#lvm
}
USE_LVM
=
"_lvm"
break
;;
esac
done
DISK_MODE
=
"
$answer
"
...
...
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