From b7c41e41033981f346a69c9e4843cb3b0f31e3e3 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 26 Nov 2018 23:31:03 +0000 Subject: Force regeneration of initrd. Now we have an initrd on the live system (to support clean shutdown), we need to make sure it is regenerated in the installed system, to remove the live-specific dracut modules. --- NEWS | 2 ++ draklive-install | 3 +++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 967f17c..1aa7e8b 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- force regeneration of initrd in installed system + 2.16 - avoid creating unwanted mount points in live system - avoid copying inactive mount points diff --git a/draklive-install b/draklive-install index 69d1b7b..bba808e 100755 --- a/draklive-install +++ b/draklive-install @@ -331,6 +331,9 @@ sub complete_install { delete $autologin->{user}; any::set_autologin($in->do_pkgs, $autologin); + #- force regeneration of initrd + unlink($_) foreach glob("$::prefix/boot/initrd*.img"); + #- allow to install doc in disk install substInFile { undef $_ if /^\%_excludedocs/ } $::prefix . '/etc/rpm/macros'; -- cgit v1.2.1