RE: [suse-autoinstall] post-install script question
Thanks. I could do that, but, say, I have the same configuration file setup for 10 different XML files. And I want to make a change. I have to remember to duplicate that change in each of the XML files. It'd be much easier if I make the change to one file, and let the script copy it for me. That's why I'm trying to get this to work -- I had it working perfectly using <files> before.... -p -----Original Message----- From: Volkmar Glauche [mailto:glauche@uke.uni-hamburg.de] Sent: Tuesday, June 17, 2003 11:43 PM To: Hirayama, Pat Cc: suse-autoinstall@suse.com Subject: Re: [suse-autoinstall] post-install script question On Tue, 17 Jun 2003, Hirayama, Pat wrote:
Greetings,
So, I've been trying to have autoyast use a post install shell script to mount an NFS share and copy various configuration files onto the newly setup server. (SuSE Linux Professional 8.2)
Thanks to Anas' help, I've gotten to the point that the script is copied over and is executed ... but it doesn't work.
The script looks something like this:
#! /bin/sh mount -a cp /mnt/suse/autoyast/files/common/syslog.conf /etc/syslog.conf cp /mnt/suse/autoyast/files/common/motd /etc/motd ...
I don't know why your script may fail. But if you just want to get your own configuration files in place there is (at least with 8.1) the <files> section where you can place file contents as CDATA in you autoyast config file like this ... <configure> <files config:type="list"> <file> <file_contents> <![CDATA[ #here goes your file contents ]]> </file_contents> <file_path>/my_path/my_name</file_path> </file> ... </files> ... Volkmar -- Volkmar Glauche Department of Neurology E-Mail glauche@uke.uni-hamburg.de UKE Hamburg Phone 49(0)40-42803-5781 Martinistr. 52 Fax 49(0)40-42803-9955 20246 Hamburg
Hirayama, Pat wrote:
Thanks. I could do that, but, say, I have the same configuration file setup for 10 different XML files. And I want to make a change. I have to remember to duplicate that change in each of the XML files. It'd be much easier if I make the change to one file, and let the script copy it for me.
That's why I'm trying to get this to work -- I had it working perfectly using <files> before....
Just ran a simple test and it works fine for me: % cat /var/adm/autoinstall/logs/post.sh.log + echo 'Running Post-install script' Running Post-install script + id uid=0(root) gid=0(root) + whoami root + mount -a 192.168.1.1:/work/CDs/ /mnt + cp /mnt/mksles8.sh /tmp + umount /mnt % l /tmp/mksles8.sh -rwxr-xr-x 1 root root 2132 Jun 18 12:11 /tmp/mksles8.sh* Can you send me the control file you are using? Just remove the sensitive stuff :) Anas
-p
-----Original Message----- From: Volkmar Glauche [mailto:glauche@uke.uni-hamburg.de] Sent: Tuesday, June 17, 2003 11:43 PM To: Hirayama, Pat Cc: suse-autoinstall@suse.com Subject: Re: [suse-autoinstall] post-install script question
On Tue, 17 Jun 2003, Hirayama, Pat wrote:
Greetings,
So, I've been trying to have autoyast use a post install shell script to mount an NFS share and copy various configuration files onto the newly
setup
server. (SuSE Linux Professional 8.2)
Thanks to Anas' help, I've gotten to the point that the script is copied over and is executed ... but it doesn't work.
The script looks something like this:
#! /bin/sh mount -a cp /mnt/suse/autoyast/files/common/syslog.conf /etc/syslog.conf cp /mnt/suse/autoyast/files/common/motd /etc/motd ...
I don't know why your script may fail. But if you just want to get your own configuration files in place there is (at least with 8.1) the <files> section where you can place file contents as CDATA in you autoyast config file like this ... <configure> <files config:type="list"> <file> <file_contents> <![CDATA[ #here goes your file contents ]]> </file_contents> <file_path>/my_path/my_name</file_path> </file> ... </files> ...
Volkmar
Hello Did you finally got it working? I am involved in a very similar problem with the same results -> without success. Have you considered on building the XML files dinamically? I mean from parts, where one of them would be your distributed file. This is the way i am trying to set up while the mout thing doesn't works. Hirayama, Pat wrote:
Thanks. I could do that, but, say, I have the same configuration file setup for 10 different XML files. And I want to make a change. I have to remember to duplicate that change in each of the XML files. It'd be much easier if I make the change to one file, and let the script copy it for me.
That's why I'm trying to get this to work -- I had it working perfectly using <files> before....
-p
-----Original Message----- From: Volkmar Glauche [mailto:glauche@uke.uni-hamburg.de] Sent: Tuesday, June 17, 2003 11:43 PM To: Hirayama, Pat Cc: suse-autoinstall@suse.com Subject: Re: [suse-autoinstall] post-install script question
On Tue, 17 Jun 2003, Hirayama, Pat wrote:
Greetings,
So, I've been trying to have autoyast use a post install shell script to mount an NFS share and copy various configuration files onto the newly
setup
server. (SuSE Linux Professional 8.2)
Thanks to Anas' help, I've gotten to the point that the script is copied over and is executed ... but it doesn't work.
The script looks something like this:
#! /bin/sh mount -a cp /mnt/suse/autoyast/files/common/syslog.conf /etc/syslog.conf cp /mnt/suse/autoyast/files/common/motd /etc/motd ...
I don't know why your script may fail. But if you just want to get your own configuration files in place there is (at least with 8.1) the <files> section where you can place file contents as CDATA in you autoyast config file like this ... <configure> <files config:type="list"> <file> <file_contents> <![CDATA[ #here goes your file contents ]]> </file_contents> <file_path>/my_path/my_name</file_path> </file> ... </files> ...
Volkmar
participants (3)
-
Anas Nashif
-
Hirayama, Pat
-
Pablo Gomez