mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
dist/common/scripts/scylla_setup: use 'swapon -s' instead of 'swapon --show'
Since Ubuntu 14.04 doesn't supported --show option, we need to prevent use it.
Fixes #1740
Signed-off-by: Takuya ASADA <syuu@scylladb.com>
Message-Id: <1475788340-22939-2-git-send-email-syuu@scylladb.com>
(cherry picked from commit 469e9af1f4)
This commit is contained in:
2
dist/common/scripts/scylla_setup
vendored
2
dist/common/scripts/scylla_setup
vendored
@@ -84,7 +84,7 @@ get_unused_disks() {
|
||||
if [ -f /usr/sbin/pvs ]; then
|
||||
count_pvs=$(pvs|grep $dev|wc -l)
|
||||
fi
|
||||
count_swap=$(swapon --show |grep `realpath $dev`|wc -l)
|
||||
count_swap=$(swapon -s |grep `realpath $dev`|wc -l)
|
||||
if [ $count_raw -eq 0 -a $count_pvs -eq 0 -a $count_swap -eq 0 ]; then
|
||||
echo -n "$dev "
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user