
@editors
@graphical-internet
@graphics
@java
@kvm
@legacy-software-support
@text-internet
@base-x
kexec-tools
iscsi-initiator-utils
bridge-utils
fipscheck
device-mapper-multipath
sgpio
emacs
libsane-hpaio
xorg-x11-utils
xorg-x11-server-Xnest
sg3_utils
ntp
pexpect
%pre
#Save some information about the cdrom device
ls -l /tmp/cdrom > /tmp/cdrom.ls
%post --nochroot
(
#If the device is no longer there by the time post starts, create it
if [ ! -b /tmp/cdrom ]
then
#get the major number
major=$(cat /tmp/cdrom.ls | cut -d" " -f5)
#strip of the trailing comma
major=${major%,}
#get the minor number
minor=$(cat /tmp/cdrom.ls | cut -d" " -f6)
#make sure we have what we need; create device node if so
[ -n "$major" -a -n "$minor" ] && mknod /tmp/cdrom b $major $minor
fi
#make sure mount directory exists
if [ ! -d /mnt/sysimage/root/distro ]
then
mkdir -p /mnt/sysimage/root/distro
fi
#should be ready to mount the optical media
mount -t iso9660 -o ro /tmp/cdrom /mnt/sysimage/root/distro
# mount -t iso9660 -o ro /tmp/cdrom /mnt/source
35 www.redhat.com
Comentários a estes Manuais