From 8a7341f08278a3f37a9571a2ec79bb4b6ba32a24 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Thu, 12 Mar 2015 09:59:24 +0100 Subject: [PATCH] Removed trailing whitespaces --- tree/boot-nbd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tree/boot-nbd b/tree/boot-nbd index 5572880..56d1f21 100644 --- a/tree/boot-nbd +++ b/tree/boot-nbd @@ -21,7 +21,7 @@ setup_nbd_device() { # Checking if device is already attached $NBD_CLIENT -c /dev/nbd${device} >/dev/null 2>/dev/null if [ $? -eq 0 ]; then - return + return fi # Connecting the device @@ -31,12 +31,12 @@ setup_nbd_device() { # Checking if device is already attached $NBD_CLIENT -c /dev/nbd${device} >/dev/null 2>/dev/null || \ - log_fatal_msg "Device connection failed." + log_fatal_msg "Device connection failed." # Fixing IO scheduler if grep -q '\[cfq\]' /sys/block/nbd${device}/queue/scheduler then - echo deadline > /sys/block/nbd${device}/queue/scheduler + echo deadline > /sys/block/nbd${device}/queue/scheduler fi } @@ -46,7 +46,7 @@ mountroot() { # Attaching NBD setup_nbd_device 0 # nbd0 - + # Prepare switch_root mount /dev/nbd0 ${rootmnt} echo 0x0100 > /proc/sys/kernel/real-root-dev