[PATCH] Link mkswap to mkfs.swap so mkfs -t swap works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux