Antwort: [suse-autoinstall] Post-Chroot Problem and SMP-Kernel-Bug
Hi Jens, I don't know if this will help you, but have you realized that the chroot-scripts are now in a new section?! Since SuSE 8.1 they are in the scripts section and not as under 8.0 directly in the configure section. Another point is that they won't be executed in the new target file system but in the old root filesystem, if I remember our experiences well ... Hope this will help you !! Cheers, Michael Mit freundlichen Grüßen Michael Jeromin Consultant Integrated Business Consulting Mummert Consulting AG Tel.: 0179 / 4778310 Fax: 0251 / 98158 - 4634 Jens Kühnel <listuser@kue An: suse-autoinstall@suse.com hnel.org> Kopie: (Blindkopie: Michael Jeromin/mummert/de) Thema: [suse-autoinstall] Post-Chroot Problem and SMP-Kernel-Bug 24.10.02 09:09 Hi *, first a thanks to Anas! You installer makes it a lot easier to setup a classroom. The grub-bootdisk is also excelent! No F*** Bootdisk compiling! :-) But I have a problem with the post-chroot script. I wrote an script to change the IP and a lot of other things. But the script is never started. I created the file with yast2 a couple of times or write it my one, but nothing helps! I´ve attached the autoinstall.xml. Another problem is the smpkernel. I think there is a bug with the eepro100 drivers. They don´t work with the smp kernel, the driver loads but there is no RX or TX. When I append "nosmp maxcpus=0" every thing works fine. The k_deflt kernel works good, too. I hope someone will help me with this problems. CU Jens <?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/YaST2/include/autoinstall/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config=" http://www.suse.com/1.0/configns"> <configure> <nfs config:type="list"> <nfs_entry> <mount_point>/install</mount_point> <nfs_options>ro,wsize=8192,rsize=8192,soft,intr</nfs_options> <server_path>10.0.0.1:/install</server_path> </nfs_entry> </nfs> <scripts> <chroot-scripts config:type="list"> <script> <filename>ipaddress.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[# # (C) 2002 Jens Kuehnel spam@kuehnel.org # (just change the spam to my given name :-) # License GLP # # current IP to SuSE8-Configuration # takes current IP from the installation system and write it in the configfiles # hostname is taken from rev-lookup # cat > /etc/resolv.conf << EOF nameserver 10.0.0.1 search linux.foo domain linux.foo EOF #The ip Address is allready available ! :-) #IP=$(ifconfig eth0 | grep "inet addr" | cut -d : -f 2 | cut -d " " -f 1) echo $IP > /tmp/ipaddresse cat > /etc/sysconfig/network/ifcfg-eth0 <<EOF IPADDR=$IP NETMASK=255.0.0.0 NETWORK=10.0.0.0 BROADCAST=10.255.255.255 STARTMODE=onboot UNIQUE="1234" EOF host $IP | cut -d " " -f 5 | cut -d . -f -3 > /etc/HOSTNAME HOSTNAME=$(cat /etc/HOSTNAME) echo $HOSTNAME > /tmp/ipaddresse-hostname cat > /etc/hosts <<EOF # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost $IP $HOSTNAME EOF cat > /etc/sysconfig/network/routes << EOF default 10.0.0.1 - - EOF ]]> </source> </script> <script> <filename>you-infos.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[ echo "ftp://10.0.0.1/pub/suse" > /etc/suseservers chattr +i /etc/suseservers cat > /etc/sysconfig/onlineupdate <<EOF # # While starting YOU ( YaST2-Online-Update ) the default ftp serverlist # will be updated by the call "wget" to www.suse.de. This list will be # stored under /etc/suseservers. # Set YAST2_LOADFTPSERVER to "no", if you do not want to reload the # ftp serverlist. # YAST2_LOADFTPSERVER="no" # # Registration code for business products # REG_CODE="" # # Registration password for business products # REG_PASSWORD="" # # User for used proxy # PROXY_USER="" # # Password for used proxy # PROXY_PASSWORD="" EOF ]]> </source> </script> <script> <filename>nettime.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[# # update Time from install and write to hardware-clock # ntpdate 10.0.0.1 hwclock --systohc ]]> </source> </script> </chroot-scripts> <post-scripts config:type="list"/> <pre-scripts config:type="list"/> </scripts> <security> <encryption>md5</encryption> </security> <users config:type="list"> <user> <encrypted config:type="boolean">true</encrypted> <user_password>$1$hcZxkyzz$WPiSFiwbrSPEGfkln.G.w0</user_password> <username>root</username> </user> <user> <encrypted config:type="boolean">true</encrypted> <user_password>$1$CzzzYyzz$udBZLLbPuIHZoPJMaH9gc0</user_password> <username>linux</username> </user> </users> <x11> <color_depth config:type="integer">16</color_depth> <configure_x11 config:type="boolean">true</configure_x11> <display_manager>kdm</display_manager> <enable_3d config:type="boolean">true</enable_3d> <resolution>1024x768</resolution> <start_x11 config:type="boolean">false</start_x11> </x11> </configure> <install> <bootloader> <activate config:type="boolean">true</activate> <lba_support config:type="boolean">true</lba_support> <linear config:type="boolean">false</linear> <location>mbr</location> </bootloader> <general> <clock> <hwclock>localtime</hwclock> <timezone>Europe/Berlin</timezone> </clock> <keyboard> <keymap>german</keymap> </keyboard> <language>de_DE</language> <mode> <confirm config:type="boolean">false</confirm> <forceboot config:type="boolean">true</forceboot> <interactive_boot config:type="boolean">false</interactive_boot> <reboot config:type="boolean">false</reboot> </mode> </general> <partitioning config:type="list"> <drive> <device>/dev/hda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <mount>swap</mount> <partition_id config:type="integer">131</partition_id> <size>200M</size> </partition> <partition> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <size>4000M</size> </partition> </partitions> <use>all</use> </drive> </partitioning> <report> <errors> <log config:type="boolean">true</log> <show config:type="boolean">true</show> <timeout config:type="integer">100</timeout> </errors> <messages> <log config:type="boolean">true</log> <show config:type="boolean">true</show> <timeout config:type="integer">100</timeout> </messages> <warnings> <log config:type="boolean">true</log> <show config:type="boolean">true</show> <timeout config:type="integer">100</timeout> </warnings> </report> <software> <addons config:type="list"> <addon>Basis-Devel</addon> <addon>Basis-Sound</addon> <addon>Gnome</addon> <addon>Kde-Desktop</addon> <addon>Kde</addon> <addon>LAMP</addon> <addon>LDAP-Server</addon> <addon>Multimedia</addon> <addon>Network</addon> <addon>SuSE-Documentation</addon> <addon>X11</addon> </addons> <base>default</base> <packages config:type="list"> <package>mc</package> </packages> </software> </install> </profile> -- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
participants (1)
-
Michael.Jeromin@mummert.de