[arch-releng] [PATCH 1/3] use consistent syntax for boot parameter processing

Christian Hesse list at eworm.de
Fri Jan 2 10:23:43 UTC 2015


From: Christian Hesse <mail at eworm.de>

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 archiso/initcpio/hooks/archiso | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/archiso/initcpio/hooks/archiso b/archiso/initcpio/hooks/archiso
index addd08a..1bd9419 100644
--- a/archiso/initcpio/hooks/archiso
+++ b/archiso/initcpio/hooks/archiso
@@ -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}"
-- 
2.2.1


More information about the arch-releng mailing list