mkswap: separate UUID feature
Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f3b92d3856
commit
beca96ffa7
@ -416,6 +416,13 @@ config FEATURE_MKSWAP_V0
|
|||||||
If your kernel is older than 2.1.117, then v0 support is the
|
If your kernel is older than 2.1.117, then v0 support is the
|
||||||
only option.
|
only option.
|
||||||
|
|
||||||
|
config FEATURE_MKSWAP_UUID
|
||||||
|
bool "UUID support"
|
||||||
|
default n
|
||||||
|
depends on MKSWAP
|
||||||
|
help
|
||||||
|
Generate swap spaces with universally unique identifiers.
|
||||||
|
|
||||||
config MORE
|
config MORE
|
||||||
bool "more"
|
bool "more"
|
||||||
default n
|
default n
|
||||||
|
@ -50,7 +50,7 @@ static void mkswap_selinux_setcontext(int fd, const char *path)
|
|||||||
# define mkswap_selinux_setcontext(fd, path) ((void)0)
|
# define mkswap_selinux_setcontext(fd, path) ((void)0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLE_DESKTOP
|
#if ENABLE_FEATURE_MKSWAP_UUID
|
||||||
static void mkswap_generate_uuid(uint8_t *buf)
|
static void mkswap_generate_uuid(uint8_t *buf)
|
||||||
{
|
{
|
||||||
/* http://www.ietf.org/rfc/rfc4122.txt
|
/* http://www.ietf.org/rfc/rfc4122.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user