| line | true | false | branch | 
 
| 42 | 0 | 0 | unless $fs_root | 
 
| 44 | 0 | 0 | unless -d "$fs_root/etc" | 
 
| 48 | 0 | 0 | -e "$etc/arch-release" ? : | 
 
|  | 0 | 0 | -e "$etc/gentoo-release" ? : | 
 
|  | 0 | 0 | -e "$etc/slackware-version" ? : | 
 
|  | 0 | 0 | -e "$etc/SuSE-release" ? : | 
 
|  | 0 | 0 | -e "$etc/redhat-release" ? : | 
 
|  | 0 | 0 | -e "$etc/debian_version" ? : | 
 
| 58 | 0 | 0 | unless my $distro = shift() | 
 
| 59 | 0 | 0 | $distro eq 'arch' ? : | 
 
|  | 0 | 0 | $distro eq 'gentoo' ? : | 
 
|  | 0 | 0 | $distro eq 'slackware' ? : | 
 
|  | 0 | 0 | $distro eq 'suse' ? : | 
 
|  | 0 | 0 | $distro eq 'redhat' ? : | 
 
|  | 0 | 0 | $distro eq 'debian' ? : | 
 
| 82 | 0 | 0 | if $p{'test_mode'} | 
 
| 84 | 0 | 0 | if (-d '/boot/domU') { } | 
 
| 86 | 0 | 0 | unless $modules | 
 
| 89 | 0 | 0 | unless (-d $module_dir) | 
 
| 90 | 0 | 0 | unless mkpath($module_dir) | 
 
| 94 | 0 | 0 | unless $util->syscmd($cmd, %std_opts) | 
 
| 100 | 0 | 0 | if $mod eq 'headers' and not "$fs_root/usr/src" | 
 
| 102 | 0 | 0 | unless $util->get_url("$url/$file", %std_opts) | 
 
| 103 | 0 | 0 | unless $util->syscmd("tar -zxpf $file -C $fs_root", %std_opts) | 
 
| 110 | 0 | 0 | if -e "$fs_root/.bash_history" | 
 
| 111 | 0 | 0 | if -e "$fs_root/root/.bash_history" | 
 
| 122 | 0 | 0 | unless (-f $rc_local) | 
 
| 153 | 0 | 0 | if $p{'test_mode'} | 
 
| 155 | 0 | 0 | if $distro =~ /debian|ubuntu/i | 
 
| 156 | 0 | 0 | if $distro =~ /redhat|fedora|centos/i | 
 
| 157 | 0 | 0 | if $distro =~ /gentoo/i | 
 
| 216 | 0 | 0 | if $test_mode | 
 
| 218 | 0 | 0 | if ($util->file_write("$fs_root/$config_file", 'lines', [$config], %std_opts)) { } | 
 
| 230 | 0 | 0 | if ($hostname) | 
 
| 263 | 0 | 0 | if (-r $net_conf) | 
 
| 264 | 0 | 0 | unless @lines = $util->file_read($net_conf, %std_opts) | 
 
| 268 | 0 | 0 | if $_ =~ /^config_$device/ | 
 
| 269 | 0 | 0 | if $_ =~ /^routes_$device/ | 
 
| 278 | 0 | 0 | unless $util->file_write($net_conf, 'lines', \@new_lines, %std_opts) | 
 
| 324 | 0 | 0 | if $test_mode | 
 
| 326 | 0 | 0 | $r ? : | 
 
| 338 | 0 | 0 | $r ? : | 
 
| 347 | 0 | 0 | $r ? : | 
 
| 363 | 0 | 0 | $r ? : | 
 
| 366 | 0 | 0 | if scalar @{$$prov{'errors'};} > $errors_before | 
 
| 380 | 0 | 0 | if $distro =~ /debian|ubuntu/i | 
 
| 381 | 0 | 0 | if $distro =~ /redhat|fedora|centos/i | 
 
| 382 | 0 | 0 | if $distro =~ /gentoo/i | 
 
| 399 | 0 | 0 | unless $util->file_write("$fs_root/etc/hostname", 'lines', [$host], %std_opts) | 
 
| 420 | 0 | 0 | unless "$fs_root/etc/conf.d" | 
 
| 422 | 0 | 0 | unless $util->file_write("$fs_root/etc/conf.d/hostname", 'lines', ["HOSTNAME=$host"], %std_opts) | 
 
| 445 | 0 | 0 | if (-r $config) | 
 
| 448 | 0 | 0 | if $_ =~ /^HOSTNAME/ | 
 
| 454 | 0 | 0 | unless $util->file_write($config, 'lines', \@new, %std_opts) | 
 
| 485 | 0 | 0 | unless $util->file_write("$fs_root/etc/event.d/xvc0", 'lines', [$contents], %std_opts) | 
 
| 492 | 0 | 0 | unless -e $serial | 
 
| 497 | 0 | 0 | if ($line =~ /^[start|stop]/) | 
 
| 503 | 0 | 0 | unless $util->file_write("$fs_root/etc/event.d/serial", 'lines', \@new, %std_opts) | 
 
| 526 | 0 | 0 | unless ($template =~ /debian|ubuntu/i) | 
 
| 529 | 0 | 0 | if ($template =~ /redhat|fedora|centos/) | 
 
| 532 | 0 | 0 | -e "$fs_root/bin/bash" ? : | 
 
| 534 | 0 | 0 | -e "$fs_root/sbin/agetty" ? : | 
 
|  | 0 | 0 | -e "$fs_root/sbin/getty" ? : | 
 
| 541 | 0 | 0 | if (-e "$fs_root/etc/event.d") | 
 
| 549 | 0 | 0 | if $_ =~ /^1:/ | 
 
| 554 | 0 | 0 | unless $util->file_write($inittab, 'lines', \@new, %std_opts) | 
 
| 580 | 0 | 0 | unless $util->file_write("$fs_root/tmp/autologin.c", 'lines', [$auto], %std_opts) | 
 
| 585 | 0 | 0 | unless my $chroot = $util->find_bin('chroot', %std_opts) | 
 
| 586 | 0 | 0 | unless my $gcc = $util->find_bin('gcc', %std_opts) | 
 
| 588 | 0 | 0 | unless $util->syscmd($cmd, %std_opts) | 
 
| 590 | 0 | 0 | unless -x "$fs_root/bin/autologin" |