installer: Fix umounting and ejecting cdrom after install.

This commit is contained in:
Michael Tremer
2014-07-21 14:08:46 +02:00
parent 1a4d8f1fc2
commit 2c9c458c71

View 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) {