Skip to content

Commit

Permalink
Removed trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Mar 12, 2015
1 parent 2f08786 commit 8a7341f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tree/boot-nbd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand All @@ -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
Expand Down

0 comments on commit 8a7341f

Please sign in to comment.