--- lib/PXElator/config.pm 2010/09/17 21:53:19 537 +++ lib/PXElator/config.pm 2010/09/17 22:00:49 538 @@ -44,14 +44,20 @@ my $hostname = client::conf( $ip => 'hostname' ) || 'debian-live'; - # FIXME drop in shell because we can't create user + # FIXME drop in shell because users doesn't work in current image + my $custom_init = 'init=/bin/hash'; + + if ( my $custom_squashfs = client::conf( $ip => 'squashfs' ) ) { + $squashfs = $custom_squashfs; + $custom_init = ''; + } pxelinux::config_for_ip( $ip, qq{ default debian_live label debian_live kernel $vmlinuz - 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 }); }