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
524a1b0a
Commit
524a1b0a
authored
Mar 05, 2012
by
Natanael Copa
Browse files
setup-disk: cleanup. use shell manipulation instead of sed
parent
e271e020
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
524a1b0a
...
...
@@ -204,7 +204,7 @@ install_mounted_root() {
[
-e
"/sys/block/
${
dev
#/dev/
}
/md"
]
||
continue
local
md
=
${
dev
#/dev/
}
initfs_features
=
"
$
(
echo
$
initfs_features
|
sed
's/raid//'
)
raid"
initfs_features
=
"
$
{
initfs_features
% raid
}
raid"
local
level
=
$(
cat
/sys/block/
$md
/md/level
)
case
"
$level
"
in
raid1
)
raidmod
=
"
$raidmod
,
$level
"
;;
...
...
@@ -215,7 +215,7 @@ install_mounted_root() {
# check if we need hardware raid drivers
case
$rootdev
in
/dev/cciss/
*
)
initfs_features
=
"
$
(
echo
$
initfs_features
|
sed
's/raid//'
)
raid"
initfs_features
=
"
$
{
initfs_features
% raid
}
raid"
;;
esac
...
...
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