   ALTLinux Sisyphus    spt
---------------------------------------------------------------

: LAKostis <lakostis at altlinux.ru>
 : 31.01.2007

: 0.9



 spt

 
---------------

    .    :

- spt (   iso )
-    (     ).

   :

$ apt-get install spt

 ,  spt >= 0.5.0.

  spt >= 0.4.0-alt2.1  /etc/hasher-priv/user.d/<user> 
  allow_ttydev=YES  allowed_mountpoints=/dev/pts.

 

 ,     :)

$ mkdir workdir

1.     /usr/share/spt/profile-*. , 
livecd  profile-default:

$ cp -a /usr/share/spt/profile-default workdir/profile

   workdir/profile,      :

- profile/config -   ,    KERNEL_ADD
  (  ,   stage1)  ,  
  (PUBLISHER ORIGIN SUITE CODENAME VERSION).   
  /,    spt  .   
   ARCH,    - (i586  x86-64). COMPONENTS - 
    (),     .
   LiveCD   ,  live.  
      ,   
   (, live/config),    . :
  - OUT -    
  - IDENT -  ,     .  
         .

- profile/modules -   ,   
    stage1.

- profile/$IDENT/packages -    , 
  - :) ,     livecd,   ttf
   bitmap  ( fonts-ttf-*  fonts-bitmap-*) + WM/DE.  , 
         "" -
   DE ( KDE  GNOME),   icewm 
  fluxbox.

  ! ,    (  )  $KERNEL_ADD 
  profile/$IDENT/packages ,    stage2

- profile/$IDENT/hooks.d -   ,   
   . ,  livecd     
   /i18n/ .    
    /usr/share/spt/hooks-common   ,   
     .

2.  ISO9660 

$ spt --mkiso workdir

 workdir -      

   working chroot,    squashfs ( livecd),
 stage1 ,     .iso .
 .iso    (,     ),  
  --skip-iso.

 ,  OUT     altlinux,    
syslinux/isolinux:
-   spt   profile/isolinux.cfg.in     .
  :  "append initrd=alt0/full.cz live fastboot
  automatic=method:cdrom"   "append initrd=alt0/full.cz live fastboot
  automatic=method:cdrom stagename=<stage>",  stage -  
  squashfs  (-,  altlinux).

  OpenVZ
-------------------

  - profile-ovz
   - tbz2/tgz

   :

profile/config -   COMPONENTS       .
profile/*/config -   OUT, ,     
 altlinux-3.0.tar.gz,   OUT   OUT=altlinux-3.0

  :

$ spt --image-type=tgz workdir,  workdir/profile   profile-ovz

LiveCD
------

  - profile-default
   - squashfs

 :

KERNEL_ADD -     stage1

 :

CDFILENAME -  .iso 

  PXE:

-  tftp-server, dhcp-server, syslinux
-   workdir/*.iso (  isolinux/  iso ) 
  /var/lib/tftpboot
-  /usr/lib/syslinux/pxelinux.0  /var/lib/tftpboot
-   /etc/dhcp/dhcpd.conf :

ddns-update-style none;
authoritative;

subnet xxxxxx.0 netmask 255.255.255.0 {

	host pxeclient {
	        hardware ethernet 00:0e:a6:5c:01:a0;
	        fixed-address xxxxxxxxx;
			 
	        filename "/pxelinux.0";
		# tftp ,   pxelinux.0
	        next-server xxxxxxxxx;
	}

}

-  tftp  /etc/xinet.d/,    in.tftpd 
  /etc/hosts.allow

-    altlinux   nfs ( ro)
-  /var/lib/tfptboot/pxelinux.cfg/default  :

default live
prompt 1
timeout 0

label live
  kernel alt0/vmlinuz
  append initrd=alt0/full.cz live fastboot automatic=method:nfs,network:dhcp,server:xxxxxx,directory:workdir/out stagename=altlinux
label harddisk
  LOCALBOOT -1

-  .   .
