diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-07-15 17:19:29 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-07-15 17:19:29 +0000 |
commit | a8bd0d2af7e22e2ac97da19399338f605c189303 (patch) | |
tree | 5077278f0c98b670760226513442e85379d371ad | |
parent | da69d9b429f57f4a5bb8c59829cc8ed47db1d955 (diff) | |
download | drakiso-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-x | draklive | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |