Changed unneeded 'elif' statements to simple individual 'if' statements

This commit is contained in:
2026-01-01 12:40:03 -05:00
parent 8d3c013539
commit 8b892d207d
4 changed files with 81 additions and 27 deletions

View File

@@ -35,7 +35,9 @@ if [[ "${1}" == '--live' ]]; then
modprobe \
zfs
elif [[ "${1}" == '--rsync' ]]; then
fi
if [[ "${1}" == '--rsync' ]]; then
mkdir -p /run/install
if [[ "${VERSION_ID}" -lt '41' ]]; then
@@ -50,14 +52,18 @@ elif [[ "${1}" == '--rsync' ]]; then
--exclude=/etc/machine-id \
--info=progress2 \
/run/install/ /mnt
elif [[ "${1}" == '--resolv-conf' ]]; then
fi
if [[ "${1}" == '--resolv-conf' ]]; then
mv /mnt/etc/resolv.conf \
/mnt/etc/resolv.conf.orig
cp -L \
/etc/resolv.conf \
/mnt/etc
elif [[ "${1}" == '--dracut' ]]; then
fi
if [[ "${1}" == '--dracut' ]]; then
dracut \
--force \
--regenerate-all