Thank you Oliver, Using the full path fixed the issue. Patrick Swartz UNIX Planning & Engineering (DSUSSE) First Data 402-777-7337 desk 402-201-1192 Company cell 402-871-8981 Personal cell -----Original Message----- From: Swartz, Patrick H Sent: Monday, May 23, 2011 8:50 AM To: Oliver Schweikert Cc: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] chroot script for lvm.conf Hi Oliver, Thanks for replying. I'm retrying now with the full path, geez... why didn't I catch that... Yes, this is to setup for dm-multipath. I will post in about 45minutes with the results. Thanks, Patrick Swartz UNIX Planning & Engineering (DSUSSE) First Data 402-777-7337 desk 402-201-1192 Company cell 402-871-8981 Personal cell -----Original Message----- From: Oliver Schweikert [mailto:oliver.schweikert@horiba.com] Sent: Monday, May 23, 2011 8:42 AM To: Swartz, Patrick H Cc: opensuse-autoinstall@opensuse.org Subject: Re: [opensuse-autoinstall] ssh service Swartz, Patrick H schrieb:
<chroot-scripts config:type="list"> <script> <chrooted config:type="boolean">true</chrooted> <filename>mpath_setup.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[ #!/bin/sh cp /etc/lvm/lvm.conf /etc/lvm/lvm.conf.orig sed -r 's#filter = \[ "r\|/dev/\.\*/by-path/\.\*\|", "r\|/dev/\.\*/by-id/\.\*\|", "a/\.\*/" \]#filter = [ "a|/dev/cciss/c0d0.*|", "a|/dev/disk/by-id/.*|", "r|.*|" ]#;T;a types = [ "device-mapper", 253 ]' lvm.conf > lvm.conf.new cp lvm.conf.new lvm.conf sed -i --in-place=.bak '/INITRD_MODULES/s/mptspi/dm-multipath &/' /etc/sysconfig/kernel /sbin/mkinitrd -f multipath ]]> </source> </script> </chroot-scripts>
Hi Patrick, you can find that script after the installation at /var/adm/autoinstall/scripts/ and the corresponding log output at /var/adm/autoinstall/logs/. There you may find a message like "`lvm.conf' no such file or directory", because, obviously, your sed-command wants to run in the /etc/lvm/ folder, which is not the case. BTW: What are the lvm.conf changes good for? I am doing LVM configuration with cciss devices, too, but never needed to manipulate lvm.conf. Is this related to dm-multipath? Regards, Oliver -- Oliver Schweikert Software Development HORIBA Europe Automation Division GmbH Zabergäustr. 3 73765 Neuhausen (Germany) Tel: +49 7158-933-413 Fax: +49 7158-933-613 Email: oliver.schweikert@horiba.com Geschäftsführer: Thomas E. Ehmann, Yuichi Muroga, Takashi Nagano Amtsgericht Stuttgart, HRB 213200 ----------------------------------------- The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify First Data immediately by replying to this message and deleting it from your computer. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org