diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-19 13:14:48 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-19 13:14:48 +0200 |
| commit | beca96ffa7b19ceb8439a678743c8ee35bb60509 (patch) | |
| tree | 85adbf00832f9e9b0275dc250fa923e691a81754 | |
| parent | f3b92d385695aecefd93d5f199be1f64270c2687 (diff) | |
| download | busybox-w32-beca96ffa7b19ceb8439a678743c8ee35bb60509.tar.gz busybox-w32-beca96ffa7b19ceb8439a678743c8ee35bb60509.tar.bz2 busybox-w32-beca96ffa7b19ceb8439a678743c8ee35bb60509.zip | |
mkswap: separate UUID feature
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | util-linux/Config.in | 7 | ||||
| -rw-r--r-- | util-linux/mkswap.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/util-linux/Config.in b/util-linux/Config.in index bfd51bc7b..b97be8b22 100644 --- a/util-linux/Config.in +++ b/util-linux/Config.in | |||
| @@ -416,6 +416,13 @@ config FEATURE_MKSWAP_V0 | |||
| 416 | If your kernel is older than 2.1.117, then v0 support is the | 416 | If your kernel is older than 2.1.117, then v0 support is the |
| 417 | only option. | 417 | only option. |
| 418 | 418 | ||
| 419 | config FEATURE_MKSWAP_UUID | ||
| 420 | bool "UUID support" | ||
| 421 | default n | ||
| 422 | depends on MKSWAP | ||
| 423 | help | ||
| 424 | Generate swap spaces with universally unique identifiers. | ||
| 425 | |||
| 419 | config MORE | 426 | config MORE |
| 420 | bool "more" | 427 | bool "more" |
| 421 | default n | 428 | default n |
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index 5d1f6f05d..f71884340 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c | |||
| @@ -50,7 +50,7 @@ static void mkswap_selinux_setcontext(int fd, const char *path) | |||
| 50 | # define mkswap_selinux_setcontext(fd, path) ((void)0) | 50 | # define mkswap_selinux_setcontext(fd, path) ((void)0) |
| 51 | #endif | 51 | #endif |
| 52 | 52 | ||
| 53 | #if ENABLE_DESKTOP | 53 | #if ENABLE_FEATURE_MKSWAP_UUID |
| 54 | static void mkswap_generate_uuid(uint8_t *buf) | 54 | static void mkswap_generate_uuid(uint8_t *buf) |
| 55 | { | 55 | { |
| 56 | /* http://www.ietf.org/rfc/rfc4122.txt | 56 | /* http://www.ietf.org/rfc/rfc4122.txt |
