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 |
} |
} |