summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 41b77b5b3..f8cdc6ba3 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -720,6 +720,12 @@ sub add_kernel {
$v->{append} = pack_append($simple, $dict);
}
+ if (-e "$::prefix/bin/systemd") {
+ log::l("defaulting to systemd");
+ #@$dict = grep { $_->[0] ne 'devfs' } @$dict;
+ $v->{append} .= " init=/bin/systemd";
+ }
+
#- new versions of yaboot do not handle symlinks
$b_nolink ||= arch() =~ /ppc/;
$b_no_initrd //= (arch() =~ /mips|arm/) && !detect_devices::is_mips_gdium();