/[pxelator]/lib/PXElator/config.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/config.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 537 by dpavlin, Fri Sep 17 20:57:11 2010 UTC revision 538 by dpavlin, Fri Sep 17 22:00:49 2010 UTC
# Line 44  sub debian_live { Line 44  sub debian_live {
44    
45          my $hostname = client::conf( $ip => 'hostname' ) || 'debian-live';          my $hostname = client::conf( $ip => 'hostname' ) || 'debian-live';
46    
47          # FIXME drop in shell because we can't create user          # FIXME drop in shell because users doesn't work in current image
48            my $custom_init = 'init=/bin/hash';
49    
50            if ( my $custom_squashfs = client::conf( $ip => 'squashfs' ) ) {
51                    $squashfs = $custom_squashfs;
52                    $custom_init = '';
53            }
54    
55          pxelinux::config_for_ip( $ip, qq{          pxelinux::config_for_ip( $ip, qq{
56    
57  default debian_live  default debian_live
58  label debian_live  label debian_live
59          kernel $vmlinuz          kernel $vmlinuz
60          append initrd=$initrd fetch=http://$server_ip:7777/debian_live/$squashfs boot=live nopersistent hostname=$hostname union=aufs noprompt autologin username=user debug init=/bin/bash          append initrd=$initrd fetch=http://$server_ip:7777/debian_live/$squashfs boot=live nopersistent hostname=$hostname union=aufs noprompt autologin username=user debug $custom_init
61          });          });
62    
63  }  }

Legend:
Removed from v.537  
changed lines
  Added in v.538

  ViewVC Help
Powered by ViewVC 1.1.26