[opensuse-autoinstall] ssh service
Greetings , i am attempting to have ssh start automatically after the install as finished vi autoyast on opensuse 11.4 however I cannot seem to make it function snipped from my autoyast : <runlevel> <default>3</default> <services config:type="list"> <service> <service_name>sshd</service_name> <service_status>enable</service_status> <service_start>3 5</service_start> <service_stop>3 5</service_stop> </service> </services> </runlevel> where am I going wrong ? -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hi All, I am trying to run a chroot script that changes the /etc/lvm/lvm.conf file like so -- <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> The first step (the cp cmd) works, but the sed cmd isn't performed. I have verified several times that the sed cmd is exactly correct. Can someone help me understand why the sed cmd wouldn't perform? I need the lvm.conf changed during the chroot stage to setup the multipathing script that is done post-install. Thanks for any and all help, Patrick Swartz UNIX Planning & Engineering (DSUSSE) First Data 402-777-7337 desk 402-201-1192 Company cell 402-871-8981 Personal cell ----------------------------------------- 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
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 -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
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
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
My apologies for responding to this thread with a different topic. However, I believe that the "yast2-runlevel" package needs to be installed as well for this to work. Might be something to check. 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: Gavin Reid [mailto:poshpaws@swissunixsupport.com] Sent: Monday, May 23, 2011 7:38 AM To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] ssh service Greetings , i am attempting to have ssh start automatically after the install as finished vi autoyast on opensuse 11.4 however I cannot seem to make it function snipped from my autoyast : <runlevel> <default>3</default> <services config:type="list"> <service> <service_name>sshd</service_name> <service_status>enable</service_status> <service_start>3 5</service_start> <service_stop>3 5</service_stop> </service> </services> </runlevel> where am I going wrong ? -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org ----------------------------------------- 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
Thanks Patrick , Yes I was being very minimal in my package selection , adding yast2-runlevel sorted my problem On May 23, 2011, at 3:46 PM, Swartz, Patrick H wrote:
My apologies for responding to this thread with a different topic.
However, I believe that the "yast2-runlevel" package needs to be installed as well for this to work. Might be something to check.
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: Gavin Reid [mailto:poshpaws@swissunixsupport.com] Sent: Monday, May 23, 2011 7:38 AM To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] ssh service
Greetings , i am attempting to have ssh start automatically after the install as finished vi autoyast on opensuse 11.4 however I cannot seem to make it function
snipped from my autoyast :
<runlevel> <default>3</default> <services config:type="list"> <service> <service_name>sshd</service_name> <service_status>enable</service_status> <service_start>3 5</service_start> <service_stop>3 5</service_stop> </service> </services> </runlevel>
where am I going wrong ?
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
----------------------------------------- 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
participants (3)
-
Gavin Reid
-
Oliver Schweikert
-
Swartz, Patrick H