kadischi/rc readonly-halt,1.1.1.1,1.2

Jasper O'neal Hartline (autopsy) fedora-extras-commits at redhat.com
Fri Jul 7 14:44:11 UTC 2006


Author: autopsy

Update of /cvs/devel/kadischi/rc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15090/kadischi/rc

Modified Files:
	readonly-halt 
Log Message:
Eject LiveCD after bringing the machine down


Index: readonly-halt
===================================================================
RCS file: /cvs/devel/kadischi/rc/readonly-halt,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- readonly-halt	21 Aug 2005 17:08:47 -0000	1.1.1.1
+++ readonly-halt	7 Jul 2006 14:44:09 -0000	1.2
@@ -41,3 +41,17 @@
 
 cp /etc/mtab /livecd/ramfs/mtab
 ln -f -s /livecd/ramfs/mtab /etc/mtab
+
+## Eject LiveCD
+## 
+mount -t ext2 /dev/ram0 /initrd
+cp /etc/mtab /initrd/etc
+cd /
+pivot_root /initrd /initrd/sysroot
+mount -t proc none /proc
+mount -t tmpfs none /dev
+echo "Going to halt the system.."
+echo "You may remove any LiveCD media from the drive"
+/bin/find-live-cd /sysroot/livecd >/dev/null 2>&1
+/sysroot/usr/bin/eject /tmp/cdrom
+/bin/halt -d 8




More information about the fedora-extras-commits mailing list