Changed unneeded 'elif' statements to simple individual 'if' statements
This commit is contained in:
12
fedora.sh
12
fedora.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user