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 "${archisobasedir}" ]] && archisobasedir="arch"
[[ -z "${dm_snap_prefix}" ]] && dm_snap_prefix="arch" [[ -z "${dm_snap_prefix}" ]] && dm_snap_prefix="arch"
[[ -z "${archisodevice}" ]] && archisodevice="/dev/disk/by-label/${archisolabel}" [[ -z "${archisodevice}" ]] && archisodevice="/dev/disk/by-label/${archisolabel}"
if [[ -z "${cowfile_size}" ]]; then [[ -z "${cowfile_size}" ]] && cowfile_size="256M"
cowfile_size="256M"
fi
if [[ -n "${cow_label}" ]]; then if [[ -n "${cow_label}" ]]; then
cow_device="/dev/disk/by-label/${cow_label}" cow_device="/dev/disk/by-label/${cow_label}"