summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/lomount.c3
-rw-r--r--mdk-stage1/lomount.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/mdk-stage1/lomount.c b/mdk-stage1/lomount.c
index 991a862c7..a6dc9832f 100644
--- a/mdk-stage1/lomount.c
+++ b/mdk-stage1/lomount.c
@@ -60,7 +60,7 @@ struct loop_info
#define LOOP_GET_STATUS 0x4C03
int
-set_loop (const char *device, const char *file)
+set_loop (const char *device, const char *file, int gz)
{
struct loop_info loopinfo;
int fd, ffd, mode;
@@ -79,6 +79,7 @@ set_loop (const char *device, const char *file)
strncpy(loopinfo.lo_name, file, LO_NAME_SIZE);
loopinfo.lo_name[LO_NAME_SIZE - 1] = 0;
loopinfo.lo_offset = 0;
+ loopinfo.lo_encrypt_key = 13; /* LO_CRYPT_GZ */
#ifdef MCL_FUTURE
/*
diff --git a/mdk-stage1/lomount.h b/mdk-stage1/lomount.h
index 3b8a30ac1..2d109dc05 100644
--- a/mdk-stage1/lomount.h
+++ b/mdk-stage1/lomount.h
@@ -15,7 +15,7 @@
#ifndef LOMOUNT_H
#define LOMOUNT_H
-int lomount(char *loopfile, char *where);
+int lomount(char *loopfile, char *where, int gz);
int loumount(void);
#endif