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

eject cdrom from %pre



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




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