[Bug 455760] New: live-CD post install eject ...
https://bugzilla.novell.com/show_bug.cgi?id=455760 Summary: live-CD post install eject ... Product: openSUSE 11.2 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mmeeks@novell.com QAContact: jsrain@novell.com Found By: --- I just did an F10 install from live-CD; one of the nice things about it (perhaps the only nice thing) was that after a successfull install, as it was re-booting (I guess just after unmounting the disk) it did an eject on the CD drive - such that on next boot - it would boot from the main CD. Is that something we have considered ? I guess it belongs in FATE but ... ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |yast2-maintainers@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ma@novell.com AssignedTo|yast2-maintainers@suse.de |jsrain@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c1 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ms@novell.com --- Comment #1 from Jiri Srain <jsrain@novell.com> 2008-12-05 02:41:56 MST --- Yes, looks like a nice request. Marcus, I don't know how exactly the Kiwi scripts work, is this something you could help with? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c2 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ms@novell.com Status|NEEDINFO |NEW Info Provider|ms@novell.com | --- Comment #2 from Marcus Schaefer <ms@novell.com> 2008-12-05 04:04:18 MST --- * when you install a system by the kiwi install routine which is mainly a select device -> dump it, it will automatically eject the CD/DVD if the installation has finished. You can use that call from the KIWILinuxRC.sh code if you like * when the installation happens via the yast2 live installer kiwi can't do much. I would say the yast module could eject the device after the installation has finished. When inside the live system you can find the mount below /cdrom so you should be easily able to find the correct mount device to eject. I think a runlevel script might be required because the drive will be busy as long as the live system accesses it -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c3 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ms@novell.com --- Comment #3 from Jiri Srain <jsrain@novell.com> 2009-01-06 07:41:14 MST --- The installation is done via the YaST installer. However, I don't think that Michael wants to eject the disk immediatelly after the installation, since that effectively means halting the system. What I see as the only solution is to eject the drive while shutting the live system down. This brings me the idea to make the system eject the drive while shutting down for reboot (e.g. via an init script). Since automatical eject may be useful for other scenarios as well, it might make sense to have its support in the default init scripts. YaST could then after the live instalation finishes whether to reboot (incl. ejecting the drive). I guess that the init scripts are somehow kiwi-specific, am I right? I tried to find /cdrom directory, but could not find it in the live system (some 11.1 Beta). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c4 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ms@novell.com | --- Comment #4 from Marcus Schaefer <ms@novell.com> 2009-01-07 04:06:39 MST --- you are right the best way is a runlevel script included for shutdown It should run directly before /etc/init.d/halt * The problem I see is that the CD drive is always busy because the root file system referenced it. As soon as the media is ejected the system is dead it's like plug off the power from a hard disk. I'm not sure if we can manage a call to eject the CD/DVD as last action That's also the reason why you can't see the cdrom mount point when inside the live system. You should do the following: cat /proc/mounts | grep livecd you will get something like: /dev/sr0 /mnt/livecd iso9660 ro 0 0 and now you know the device to eject * A runlevel script could be generic enough to detect if there is a livecd device active or not. The runlevel script itself must be part of the system image and therefore is something image description specific. We can add an example of the script into the doc/examples descriptions if you like -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c5 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |coolo@novell.com Priority|P5 - None |P4 - Low --- Comment #5 from Jiri Srain <jsrain@novell.com> 2009-01-07 08:08:34 MST --- Well, I fiddled a bit around, and found following: - eject /dev/sr0 (the only CD drive in the test machine, being used for live CD) works even from the live system (which of course is not usable at all afterwards). Quite a surprise for me. - I can (relatively safely) sync all filesystems, remount them read-only, eject the media and reboot (except ejecting the media via /proc/sysrq-trigger) The downside of this approach is that the CD tray gets closed immediately (as BIOS always does while initializing); inserting some sleeps could work, but since sleep is not bash internal command, it will be pure luck if it works (relying on cache); running any commands inbetween will be even less reliable IMO. On the other hand, for laptops, which are gaining majority, this problem is not relevant. Of course, the live installation can finish with a two-button pup-up, where user can choose wheter to continue working with the live system or reboot immediately. Stefan, what do you think about this request? Do you want it for the live installer? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User mmeeks@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c7 --- Comment #7 from Michael Meeks <mmeeks@novell.com> 2009-01-07 08:57:44 MST ---
- eject /dev/sr0 (the only CD drive in the test machine, being used for live CD) works even from the live system (which of course is not usable at all
Wow :-)
On the other hand, for laptops, which are gaining majority, this problem is not relevant.
The sleep idea is nice - and even my Dell desktop has a DVD drive without a motorized load - just a sprung actuator eject.
Of course, the live installation can finish with a two-button pup-up, where user can choose wheter to continue working with the live system or reboot immediately.
That'd also be sexy - perhaps needs a tad of cross-desktop love to make the desktop manager interaction work well, but really nice work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c8 --- Comment #8 from Jiri Srain <jsrain@novell.com> 2009-01-08 08:19:04 MST --- The first attempt showed that this approach will work (it at least did not fail for me at all). I will commit a working version to SVN tomorrow so that you can update the live CD image and give it a try. On the other hand, hard reset is kind of ugly, but since all filesystems are remounted read-only and system is running in RAM anyway, I don't think it is really an issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c9 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|coolo@novell.com | --- Comment #9 from Jiri Srain <jsrain@novell.com> 2009-01-09 03:49:56 MST --- Feel free to test working version in SVN trunk (just build the package and install it in the live CD). Keeping this bug open until the package gets submitted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=455760 User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=455760#c11 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #11 from Jiri Srain <jsrain@novell.com> 2009-01-12 10:11:36 MST --- Submitted to autobuild. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com