Kickstart Post Problem

m.roth at 5-cent.us m.roth at 5-cent.us
Wed Mar 16 13:52:40 UTC 2011


Mr. Paul M. Whitney wrote:
> I am at my wits end here.  I am trying to create a custom RHEL 5.6 build.
> At the end of the install in my ks.cfg file I have a section for the post
> installation.  I am trying to copy a file from the DVD to Root's home
> directory.  Here is the snippit I have:
>
> %post --nochroot
>
> ISO9660_DEV=`dmesg | grep -i iso9660 | head -1 | cut -d\  -f4`
> DEV_NAME=${ISO9660_DEV%,}

A little complicated there... First, having just put a DVD into my drive,
I observed that there is *no* iso9660 line in dmesg until it's mounted.
And then, it's from selinux that I get SELinux: initialized (dev hda, type
iso9660), uses genfs_contexts

Not sure what the cut -d\  -f4 is: is that a space, a tab, or what, after
the \?

You might want to put df in the ks file, and see what  it sees.
<snip>
         mark




More information about the redhat-list mailing list