summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-07-15 17:19:29 +0000
committerOlivier Blin <oblin@mandriva.com>2008-07-15 17:19:29 +0000
commita8bd0d2af7e22e2ac97da19399338f605c189303 (patch)
tree5077278f0c98b670760226513442e85379d371ad
parentda69d9b429f57f4a5bb8c59829cc8ed47db1d955 (diff)
downloaddrakiso-a8bd0d2af7e22e2ac97da19399338f605c189303.tar
drakiso-a8bd0d2af7e22e2ac97da19399338f605c189303.tar.gz
drakiso-a8bd0d2af7e22e2ac97da19399338f605c189303.tar.bz2
drakiso-a8bd0d2af7e22e2ac97da19399338f605c189303.tar.xz
drakiso-a8bd0d2af7e22e2ac97da19399338f605c189303.zip
allow to write custom modprobe.conf
-rwxr-xr-xdraklive8
1 files changed, 8 insertions, 0 deletions
diff --git a/draklive b/draklive
index 4d6569b..012a29c 100755
--- a/draklive
+++ b/draklive
@@ -852,6 +852,14 @@ sub post_install_system {
foreach qw(/etc/fstab /etc/mtab /etc/modprobe.conf /etc/modprobe.preload /etc/iftab /etc/shorewall/interfaces /etc/mdadm.conf /etc/resolv.conf);
unlink($_) foreach map { glob(get_system_root($live) . $_) } @{$live->{system}{remove_files} || []};
+ if ($live->{system}{modules_conf}) {
+ local $::prefix = get_system_root($live);
+ local *modules::write_preload_conf = sub {}; #- FIXME, make this an option
+ my $modules_conf = modules::any_conf->vnew;
+ put_in_hash($modules_conf, $live->{system}{modules_conf});
+ $modules_conf->write;
+ }
+
output_with_perm(get_system_root($live) . '/etc/fstab', 0644, "none / unionfs rw 0 0\n");
#- interactive mode can lead to race in initscripts