Kickstart Post Problem
Mr. Paul M. Whitney
paul.whitney at me.com
Wed Mar 16 23:06:04 UTC 2011
Agreed, however it seems to be mounted during the VM scenario. I guess that is not the case with bare-metal. So I will try the 'df' and see what happens. The "-d\ " is a space. The next statement cuts off the comma.
Paul W
On Mar 16, 2011, at 9:52 AM, m.roth at 5-cent.us wrote:
> 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
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list