use consistent syntax for boot parameter processing

Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse 2015-01-02 11:23:43 +01:00 committed by Gerardo Exequiel Pozzi
parent 1da2d027c5
commit 0b7a77cfc3

View File

@ -100,9 +100,7 @@ run_hook() {
[[ -z "${archisobasedir}" ]] && archisobasedir="arch"
[[ -z "${dm_snap_prefix}" ]] && dm_snap_prefix="arch"
[[ -z "${archisodevice}" ]] && archisodevice="/dev/disk/by-label/${archisolabel}"
if [[ -z "${cowfile_size}" ]]; then
cowfile_size="256M"
fi
[[ -z "${cowfile_size}" ]] && cowfile_size="256M"
if [[ -n "${cow_label}" ]]; then
cow_device="/dev/disk/by-label/${cow_label}"