Commit 7d94cc6d authored by Bernhard Landauer's avatar Bernhard Landauer Committed by GitHub
Browse files

Merge pull request #140 from Chrysostomus/luks_lvm

silence useless error output
parents f84556e8 86b38b7e
...@@ -776,8 +776,8 @@ lvm_del_vg() { ...@@ -776,8 +776,8 @@ lvm_del_vg() {
# if confirmation given, delete # if confirmation given, delete
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
vgremove -f $(cat ${ANSWER}) 2>$ERR vgremove -f $(cat ${ANSWER}) 2>/dev/null
check_for_error "delete lvm-VG $(cat ${ANSWER})" $? check_for_error "delete lvm-VG $(cat ${ANSWER})"
fi fi
} }
...@@ -798,18 +798,18 @@ lvm_del_all() { ...@@ -798,18 +798,18 @@ lvm_del_all() {
# if confirmation given, delete # if confirmation given, delete
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
for i in ${LVM_LV}; do for i in ${LVM_LV}; do
lvremove -f /dev/mapper/${i} 2>$ERR lvremove -f /dev/mapper/${i} 2>/dev/null
check_for_error "remove LV ${i}" $? check_for_error "remove LV ${i}"
done done
for i in ${LVM_VG}; do for i in ${LVM_VG}; do
vgremove -f ${i} 2>$ERR vgremove -f ${i} 2>/dev/null
check_for_error "remove VG ${i}" $? check_for_error "remove VG ${i}"
done done
for i in ${LV_PV}; do for i in ${LV_PV}; do
pvremove -f ${i} 2>$ERR pvremove -f ${i} 2>/dev/null
check_for_error "remove LV-PV ${i}" $? check_for_error "remove LV-PV ${i}"
done done
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment