eject cdrom from %pre

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found a simple way to eject cdrom from %pre. 

When you create your bootable cd, you first unpack initrd img file and mount it.
cd /mnt/initrd_mnt/etc 
touch fstab
mknod /mnt/initrd_mnt/dev/hdc b 22 0

compile a static eject and copy eject to /mnt/initrd_mnt

pack your initrd and create a bootable cd.

then in your %pre script do the following :

%pre
/eject /dev/hdc

--
Ricky




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux