Differences between revisions 7 and 8
Revision 7 as of 2008-10-15 22:38:50
Size: 2452
Editor: FrBrGeorge
Revision 8 as of 2008-10-15 22:39:13
Size: 2460
Editor: FrBrGeorge
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Line 71: Line 71:

Всевозможные черновики

отдельный /srv > 8G

apt-get install tftp-server dhcp-server nfs-server isolinux
[root@server ~]# cat /etc/exports 
/srv/boot               *(ro,no_root_squash)
[root@server ~]# chkconfig tftp on
[root@server ~]# cat /etc/net/ifaces/eth1/options 
[root@server ~]# cat /etc/net/ifaces/eth1/ipv4address
[root@server ~]# chkconfig dhcpd on
[root@server ~]# cat /etc/dhcp/dhcpd.conf
# See dhcpd.conf(5) for further configuration

ddns-update-style none;

subnet netmask {
        option routers        ;
        option subnet-mask    ;

        option nis-domain               "domain.org";
        option domain-name              "domain.org";
        option domain-name-servers;

        filename "pxelinux.0";

        range dynamic-bootp;
        default-lease-time 21600;
        max-lease-time 43200;

[root@server tftpboot]# cat /var/lib/tftpboot/pxelinux.cfg/default 
default live
prompt 1
timeout 30

label live
  kernel alt0/vmlinuz
  append initrd=alt0/full.cz fastboot live lang=ru_RU showopts automatic=method:nfs,network:dhcp stagename=livefs

label rescue
  kernel alt0/vmlinuz
  append initrd=alt0/full.cz live fastboot automatic=method:nfs,network:dhcp stagename=rescue

[root@server tftpboot]# sed -i 's/only_from/#only_from/' /etc/xinetd.conf 

[root@server tftpboot]# cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/
[root@server tftpboot]# mkdir /var/lib//tftpboot/pxelinux.cfg
[root@server tftpboot]# cp -a /media/cdrom/syslinux/alt0 /var/lib//tftpboot/

mount -t squashfs -o loop /srv/boot/live /mnt/cdrom/
cp  -a /mnt/cdrom/ /srv/boot/livefs

# THIS DOESN'T DO[ root@server tftpboot]# sed -i 's/ --retry-failed/ --subsystem-nomatch=net --retry-failed/' /srv/boot/livefs/etc/init.d/udevd-final 
[root@server tftpboot]# chroot /srv/boot/livefs/ /sbin/chkconfig udevd-final off

[root@server tftpboot]# sed -i 's/=ro/=nfsro/' /srv/boot/livefs/etc/init.d/remount_rw


FrBrGeorge/Draft (last edited 2009-09-23 09:31:42 by eSyr)