]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/install+setup/install/main.c
installer: Fix umounting and ejecting cdrom after install.
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / main.c
index 17a410793c2126890760a0b4afebde3ab4e596dc..56b9446db73edd44426fabcce8ce7b2f170f6c97 100644 (file)
@@ -552,9 +552,11 @@ int main(int argc, char *argv[]) {
                        "cp /cdrom/%s /harddisk/var/ipfire/backup", restore_file);
                mysystem(commandstring);
        }
-       
-       mysystem("umount /cdrom");
-       snprintf(commandstring, STRING_SIZE, "/usr/bin/eject /dev/%s", sourcedrive);
+
+       // Umount source drive and eject
+       hw_umount(SOURCE_MOUNT_PATH);
+
+       snprintf(commandstring, STRING_SIZE, "/usr/bin/eject %s", sourcedrive);
        mysystem(commandstring);
 
        if (!unattended) {