summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-28 14:12:56 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-28 14:12:56 +0000
commit183a94ac310cd29c0738945da45c9c10806317ef (patch)
tree4e27553e61de08ab527328968b54ad80c6a62cec /mdk-stage1
parent9190b7587421cb815d4b3835b0334bb30b27bc63 (diff)
downloaddrakx-183a94ac310cd29c0738945da45c9c10806317ef.tar
drakx-183a94ac310cd29c0738945da45c9c10806317ef.tar.gz
drakx-183a94ac310cd29c0738945da45c9c10806317ef.tar.bz2
drakx-183a94ac310cd29c0738945da45c9c10806317ef.tar.xz
drakx-183a94ac310cd29c0738945da45c9c10806317ef.zip
be sure door is not locked (/sbin/init busyfies cdrom is image_always is not in memory - which is the case except when in mdk_totem)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/init.c1
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);
}