summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2012-01-15 20:51:32 +0000
committerOlivier Blin <blino@mageia.org>2012-01-15 20:51:32 +0000
commit411c9f912dd9ef44cb8df35d436d0ea6954da283 (patch)
tree19eef30c82db9efaf26d40378c0e15a4ef313132
parent64dd9dda6366fe5f839fa07b7144c5611badc1b1 (diff)
downloaddrakiso-411c9f912dd9ef44cb8df35d436d0ea6954da283.tar
drakiso-411c9f912dd9ef44cb8df35d436d0ea6954da283.tar.gz
drakiso-411c9f912dd9ef44cb8df35d436d0ea6954da283.tar.bz2
drakiso-411c9f912dd9ef44cb8df35d436d0ea6954da283.tar.xz
drakiso-411c9f912dd9ef44cb8df35d436d0ea6954da283.zip
include all possible modules in initrd by setting hostonly=no in a dracut conf file
/etc/dracut.conf.d/60-live.conf will need to be removed at live install
-rwxr-xr-xdraklive7
1 files changed, 7 insertions, 0 deletions
diff --git a/draklive b/draklive
index d23bcac..180bba6 100755
--- a/draklive
+++ b/draklive
@@ -313,6 +313,13 @@ sub post_install_system {
#- (don't use addVarsInSh from MDK::Common, it breaks shell escapes)
substInFile { s/^PROMPT=.*/PROMPT=no/ } $live->get_system_root . '/etc/sysconfig/init';
+ if (need_media_specific_boot($live)) {
+ output_with_perm($live->get_system_root . '/etc/dracut.conf.d/60-live.conf', 0644, <<EOF);
+# it is a live, build initrd to boot any hardware
+hostonly="no"
+EOF
+ }
+
configure_draklive_resize($live);
if ($live->{system}{preselect_kdm_user}) {