From fdfc9b29fbe0c80b46fadc6091cb9cb44af64309 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 9 Apr 2013 17:35:00 +0200 Subject: [PATCH] feature #1891: add label to swap images and script to mount them --- .../context-packages/base/etc/one-context.d/04-mount-swap | 1 + src/mad/sh/scripts_common.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 share/scripts/context-packages/base/etc/one-context.d/04-mount-swap diff --git a/share/scripts/context-packages/base/etc/one-context.d/04-mount-swap b/share/scripts/context-packages/base/etc/one-context.d/04-mount-swap new file mode 100755 index 0000000000..e42ca2e379 --- /dev/null +++ b/share/scripts/context-packages/base/etc/one-context.d/04-mount-swap @@ -0,0 +1 @@ +swapon -L swap diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 414285f91f..cfc6317ba1 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -273,7 +273,7 @@ function mkfs_command { return 0 ;; "swap") - echo "$MKSWAP $DST" + echo "$MKSWAP -L swap $DST" return 0 ;; "qcow2")