Commit 2a6e10a6 authored by Zachary Smith's avatar Zachary Smith

Update sed regex to avoid multiple lvm2 modules.

parent 7305a590
......@@ -320,7 +320,7 @@ install_base() {
for (( i=${#lsblk_lines[@]}-1 ; i>=0 ; i-- )) ; do
if [[ $(echo ${lsblk_lines[i]} | grep "^lvm" | wc -l) > 0 ]]; then
sed -i 's/\<block\>/& lvm2/' ${MOUNTPOINT}/etc/mkinitcpio.conf
sed -i '/block lvm2/b; s/\<block\>/& lvm2/' ${MOUNTPOINT}/etc/mkinitcpio.conf
continue
fi
if [[ $(echo ${lsblk_lines[i]} | grep "^crypt" | wc -l) > 0 ]]; then
......
......@@ -387,7 +387,7 @@ install_desktop() {
for (( i=${#lsblk_lines[@]}-1 ; i>=0 ; i-- )) ; do
if [[ $(echo ${lsblk_lines[i]} | grep "^lvm" | wc -l) > 0 ]]; then
sed -i 's/\<block\>/& lvm2/' ${MOUNTPOINT}/etc/mkinitcpio.conf
sed -i '/block lvm2/b; s/\<block\>/& lvm2/' ${MOUNTPOINT}/etc/mkinitcpio.conf
continue
fi
if [[ $(echo ${lsblk_lines[i]} | grep "^crypt" | wc -l) > 0 ]]; then
......
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