#
# Copyright (C) 2007 Karel Zak <kzak@redhat.com>
#
-# This file is part of util-linux-ng.
+# This file is part of util-linux.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
|| ts_die "Cannot make swap on $DEVICE" $DEVICE
ts_device_has "LABEL" $LABEL $DEVICE \
- || ts_die "Cannot found LABEL '$LABEL' on $DEVICE" $DEVICE
+ || ts_die "Cannot find LABEL '$LABEL' on $DEVICE" $DEVICE
-ts_udev_dev_support "by-label" $LABEL || ts_skip "udev ignores /dev/loop*" $DEVICE
+LD_LIBRARY_PATH="$U_L_LIBRARY_PATH" \
+ $TS_CMD_SWAPON -L $LABEL 2>&1 >> $TS_OUTPUT
-$TS_CMD_SWAPON -L $LABEL 2>&1 >> $TS_OUTPUT
-
-grep -q $DEVICE /proc/swaps || ts_die "Cannot found $DEVICE in /proc/swaps" $DEVICE
+grep -q $DEVICE /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" $DEVICE
ts_swapoff $DEVICE
ts_device_deinit $DEVICE