[opensuse-autoinstall] Network and file systems availability during user script levels
Heya all Since I cant seem to get the <location> option to work, and since in sles10, init scripts changed to run before the network is up. (which defeats the purpose I needed them for anyway) My current plan is to write a small script that I can place in the xml that will, at the appropriate time, mount the nfs share, copy the files into place, and then unmount. My question is what is the right phase to run in? The 6 possible phase are: Pre-install Chroot (pre chroot) Chroot (post chroot) Post install (network available) Post install (no network) Init Pre-install work work as the File system isnt there. Post install (no network) work work as I have no network. Init wont work, in sles 10 I wont have network. (there is another issue in that I want the script I am downloading to run in an rc level, so placing it duing init time would be too late anyway.) Is the network available during the chroot phases? My best option would be during the chroot (post chroot) phase, as I can drop the file in and then do a chkconfig -a to get them added in to the boot sequence. If that doesn't work, then where is the file system located in the post-install (network available) phase, so I can drop the files in myself. Thanks -Andrew -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Andrew Laden wrote:
Heya all
Since I cant seem to get the <location> option to work, and since in
i can get <location> working just fine, using http://<ip>/path it kinda "just worked" for me :)
sles10, init scripts changed to run before the network is up. (which
hmm. not according to http://www.suse.com/~ug/autoyast_doc/createprofile.scripts.html (and my setup) : "Starting from SLES9, network is not available during post-installation script execution. To access the network, network device has to be configured in the script. It is possible to execute the post scripts in an earlier phase while the installation network is still up and before AutoYaST configures the system. To run network enabled post scripts, the boolean property network_needed has to be set to true." this is about postinstall, not init scripts - which, in turn : "These scripts are executed during the initial boot process and after YaST2 has finished. The final scripts are executed using a special init.d script which is executed only once. The final scripts are executed toward the end of the boot process and after network has been intialized." i have an init script which nicely downloads required files, and it works fine. ... -- Rich -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Andrew Laden
-
Rich