diff options
-rw-r--r-- | mdk-stage1/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 91fa65870..73e82bd7d 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -335,6 +335,7 @@ void unmount_filesystems(void) if (!disallow_eject) { fd = open("/dev/cdrom", O_RDONLY|O_NONBLOCK, 0); if (fd > 0) { + ioctl(fd, CDROM_LOCKDOOR, 0); ioctl(fd, CDROMEJECT, 0); close(fd); } |