Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Applications
manjaro-architect
Commits
7d94cc6d
Commit
7d94cc6d
authored
Mar 29, 2017
by
Bernhard Landauer
Committed by
GitHub
Mar 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #140 from Chrysostomus/luks_lvm
silence useless error output
parents
f84556e8
86b38b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lib/util-disk.sh
lib/util-disk.sh
+8
-8
No files found.
lib/util-disk.sh
View file @
7d94cc6d
...
...
@@ -776,8 +776,8 @@ lvm_del_vg() {
# if confirmation given, delete
if
[[
$?
-eq
0
]]
;
then
vgremove
-f
$(
cat
${
ANSWER
}
)
2>
$ERR
check_for_error
"delete lvm-VG
$(
cat
${
ANSWER
}
)
"
$?
vgremove
-f
$(
cat
${
ANSWER
}
)
2>
/dev/null
check_for_error
"delete lvm-VG
$(
cat
${
ANSWER
}
)
"
fi
}
...
...
@@ -798,18 +798,18 @@ lvm_del_all() {
# if confirmation given, delete
if
[[
$?
-eq
0
]]
;
then
for
i
in
${
LVM_LV
}
;
do
lvremove
-f
/dev/mapper/
${
i
}
2>
$ERR
check_for_error
"remove LV
${
i
}
"
$?
lvremove
-f
/dev/mapper/
${
i
}
2>
/dev/null
check_for_error
"remove LV
${
i
}
"
done
for
i
in
${
LVM_VG
}
;
do
vgremove
-f
${
i
}
2>
$ERR
check_for_error
"remove VG
${
i
}
"
$?
vgremove
-f
${
i
}
2>
/dev/null
check_for_error
"remove VG
${
i
}
"
done
for
i
in
${
LV_PV
}
;
do
pvremove
-f
${
i
}
2>
$ERR
check_for_error
"remove LV-PV
${
i
}
"
$?
pvremove
-f
${
i
}
2>
/dev/null
check_for_error
"remove LV-PV
${
i
}
"
done
fi
}
...
...
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