diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-26 23:31:03 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-26 23:34:36 +0000 |
commit | b7c41e41033981f346a69c9e4843cb3b0f31e3e3 (patch) | |
tree | da5ce2eaa51c77c7c8dd3b1bac51725cd6dd9529 | |
parent | e9b25e96a68b3f26fe923311bd147b759c6730fa (diff) | |
download | draklive-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-- | NEWS | 2 | ||||
-rwxr-xr-x | draklive-install | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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'; |