summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-21 17:01:42 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-21 17:01:42 +0000
commitc8b7f64a48d3fd4fc2e6aeec414946500d6a0f67 (patch)
treea22326e32854b316f223256c7cfcfdbd59e35d26
parent5a7bee561c707c118bb27006c7c5f275177e9749 (diff)
downloaddrakx-c8b7f64a48d3fd4fc2e6aeec414946500d6a0f67.tar
drakx-c8b7f64a48d3fd4fc2e6aeec414946500d6a0f67.tar.gz
drakx-c8b7f64a48d3fd4fc2e6aeec414946500d6a0f67.tar.bz2
drakx-c8b7f64a48d3fd4fc2e6aeec414946500d6a0f67.tar.xz
drakx-c8b7f64a48d3fd4fc2e6aeec414946500d6a0f67.zip
fix pixel
-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;
}