summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-26 23:31:03 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-26 23:34:36 +0000
commitb7c41e41033981f346a69c9e4843cb3b0f31e3e3 (patch)
treeda5ce2eaa51c77c7c8dd3b1bac51725cd6dd9529
parente9b25e96a68b3f26fe923311bd147b759c6730fa (diff)
downloaddraklive-install-b7c41e41033981f346a69c9e4843cb3b0f31e3e3.tar
draklive-install-b7c41e41033981f346a69c9e4843cb3b0f31e3e3.tar.gz
draklive-install-b7c41e41033981f346a69c9e4843cb3b0f31e3e3.tar.bz2
draklive-install-b7c41e41033981f346a69c9e4843cb3b0f31e3e3.tar.xz
draklive-install-b7c41e41033981f346a69c9e4843cb3b0f31e3e3.zip
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.
-rw-r--r--NEWS2
-rwxr-xr-xdraklive-install3
2 files changed, 5 insertions, 0 deletions
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';