diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-08-07 18:19:33 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-08-07 18:19:33 +0000 |
commit | 251b3d2788e0a84a08de7cf6a9e1fc57719136bf (patch) | |
tree | ca09420beae82b755fa8c26e5892bf849ae502e8 | |
parent | 1fcdcfd86d44224d4937c93b17f08460fa83d807 (diff) | |
download | draklive-251b3d2788e0a84a08de7cf6a9e1fc57719136bf.tar draklive-251b3d2788e0a84a08de7cf6a9e1fc57719136bf.tar.gz draklive-251b3d2788e0a84a08de7cf6a9e1fc57719136bf.tar.bz2 draklive-251b3d2788e0a84a08de7cf6a9e1fc57719136bf.tar.xz draklive-251b3d2788e0a84a08de7cf6a9e1fc57719136bf.zip |
allow to skip writing fstab
-rwxr-xr-x | draklive | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -275,7 +275,8 @@ sub post_install_system { #- remove some build-machine specific configuration substInFile { undef $_ if /^[^#]/ } $live->get_system_root . $_ - foreach qw(/etc/fstab /etc/mtab /etc/modprobe.conf /etc/modprobe.preload /etc/iftab /etc/shorewall/interfaces /etc/mdadm.conf /etc/resolv.conf); + foreach qw(/etc/mtab /etc/modprobe.conf /etc/modprobe.preload /etc/iftab /etc/shorewall/interfaces /etc/mdadm.conf /etc/resolv.conf), + if_(!$live->{system}{skip_fstab}, '/etc/fstab'); unlink($_) foreach map { glob($live->get_system_root . $_) } @{$live->{system}{remove_files} || []}; if ($live->{system}{modules_conf}) { @@ -290,7 +291,7 @@ sub post_install_system { $live->{mount}{overlay} ? "none / $live->{mount}{overlay} rw 0 0\n" : $live->{media}->get_media_setting('source') . " / " . $live->{media}->get_media_setting('fs') . " defaults 1 1\n" - ); + ) unless $live->{system}{skip_fstab}; #- interactive mode can lead to race in initscripts #- (don't use addVarsInSh from MDK::Common, it breaks shell escapes) |