if we remastered squashfs, using bin/squashfs-overlay.sh
then this isn't problem so we don't insert init
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
});
}