From: Michael Tremer Date: Mon, 21 Jul 2014 12:08:46 +0000 (+0200) Subject: installer: Fix umounting and ejecting cdrom after install. X-Git-Tag: v2.17-core87~103^2~51^2~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c9c458c71b8b7a2fd2791dfb48ce342c29bef9f;p=ipfire-2.x.git installer: Fix umounting and ejecting cdrom after install. --- diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index 17a410793c..56b9446db7 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -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) {