public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: util-linux@vger.kernel.org
Subject: [PATCH] Link mkswap to mkfs.swap so mkfs -t swap works
Date: Sun, 3 Aug 2014 11:48:15 -0700	[thread overview]
Message-ID: <20140803184813.GA20940@thin> (raw)

This makes it easier to write generic code that deals with swap
along with other filesystems.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
 disk-utils/Makemodule.am | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/disk-utils/Makemodule.am b/disk-utils/Makemodule.am
index 995e085..3f8f96b 100644
--- a/disk-utils/Makemodule.am
+++ b/disk-utils/Makemodule.am
@@ -59,6 +59,16 @@ endif
 if HAVE_SELINUX
 mkswap_LDADD += -lselinux
 endif
+
+install-exec-hook-mkswap:
+	ln -sf mkswap $(DESTDIR)$(sbindir)/mkfs.swap
+
+uninstall-hook-mkswap:
+	rm -f $(DESTDIR)$(sbindir)/mkfs.swap
+
+INSTALL_EXEC_HOOKS += install-exec-hook-mkswap
+UNINSTALL_HOOKS += uninstall-hook-mkswap
+
 endif # BUILD_MKSWAP
 
 
-- 
2.0.1


             reply	other threads:[~2014-08-03 18:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-03 18:48 Josh Triplett [this message]
2014-08-06 13:31 ` [PATCH] Link mkswap to mkfs.swap so mkfs -t swap works Karel Zak
2014-08-06 17:51   ` josh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140803184813.GA20940@thin \
    --to=josh@joshtriplett.org \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox