summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/tools.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-05 15:19:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-05 15:19:34 +0000
commit63cc2156cb635bed3a1f027277ccd23313d3d440 (patch)
treed9e5e8ef9b230f7825542b7d24ce450141ad7575 /mdk-stage1/tools.c
parentf6d6bcc3022ceb39b27171845cf61d918fb0c7a5 (diff)
downloaddrakx-63cc2156cb635bed3a1f027277ccd23313d3d440.tar
drakx-63cc2156cb635bed3a1f027277ccd23313d3d440.tar.gz
drakx-63cc2156cb635bed3a1f027277ccd23313d3d440.tar.bz2
drakx-63cc2156cb635bed3a1f027277ccd23313d3d440.tar.xz
drakx-63cc2156cb635bed3a1f027277ccd23313d3d440.zip
we use pivot_root for rescue, so don't umount STAGE2_LOCATION
Diffstat (limited to 'mdk-stage1/tools.c')
-rw-r--r--mdk-stage1/tools.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c
index 6a34d8fb4..4e3f17a27 100644
--- a/mdk-stage1/tools.c
+++ b/mdk-stage1/tools.c
@@ -409,14 +409,6 @@ enum return_type load_ramdisk_fd(int ramdisk_fd, int size)
if (my_mount(ramdisk, STAGE2_LOCATION, "ext2", 1))
return RETURN_ERROR;
- if (IS_RESCUE) {
- if (umount(STAGE2_LOCATION)) {
- log_perror(ramdisk);
- return RETURN_ERROR;
- }
- return RETURN_OK; /* fucksike, I lost several hours wondering why the kernel won't see the rescue if it is alreay mounted */
- }
-
return RETURN_OK;
}