summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/disk.c2
-rw-r--r--mdk-stage1/lomount.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c
index 83c698334..9dff3d184 100644
--- a/mdk-stage1/disk.c
+++ b/mdk-stage1/disk.c
@@ -255,7 +255,7 @@ static enum return_type try_with_device(char *dev_name)
if (!stat(location_full, &statbuf) && !S_ISDIR(statbuf.st_mode)) {
log_message("%s exists and is not a directory, assuming this is an ISO image", location_full);
- if (lomount(location_full, IMAGE_LOCATION)) {
+ if (lomount(location_full, IMAGE_LOCATION, 0)) {
stg1_error_message("Could not mount file %s as an ISO image of the " DISTRIB_NAME " Distribution.", answers_location[0]);
umount(disk_own_mount);
return try_with_device(dev_name);
diff --git a/mdk-stage1/lomount.c b/mdk-stage1/lomount.c
index a6dc9832f..0d7a7e1db 100644
--- a/mdk-stage1/lomount.c
+++ b/mdk-stage1/lomount.c
@@ -132,7 +132,7 @@ del_loop(void)
static char * where_mounted = NULL;
int
-lomount(char *loopfile, char *where)
+lomount(char *loopfile, char *where, int gz)
{
long int flag;
@@ -142,7 +142,7 @@ lomount(char *loopfile, char *where)
my_insmod("loop", ANY_DRIVER_TYPE, NULL);
- if (set_loop(loopdev, loopfile)) {
+ if (set_loop(loopdev, loopfile, gz)) {
log_message("set_loop failed on %s (%s)", loopdev, strerror(errno));
return 1;
}