summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-11 16:56:08 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-11 16:56:08 +0000
commit7c7e9f4818ece1c20002d8b4c3aee9c575453648 (patch)
tree158afd71c9a1b76a0e8750b03280e5a85be3bbb8 /draklive
parent4d7847b0c62975bd3f9b6a960ef1721470b537c1 (diff)
downloaddrakiso-7c7e9f4818ece1c20002d8b4c3aee9c575453648.tar
drakiso-7c7e9f4818ece1c20002d8b4c3aee9c575453648.tar.gz
drakiso-7c7e9f4818ece1c20002d8b4c3aee9c575453648.tar.bz2
drakiso-7c7e9f4818ece1c20002d8b4c3aee9c575453648.tar.xz
drakiso-7c7e9f4818ece1c20002d8b4c3aee9c575453648.zip
allow to specify mount options in fstab in media->{mount_options}
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive5
1 files changed, 3 insertions, 2 deletions
diff --git a/draklive b/draklive
index 7ca86a8..44406bd 100755
--- a/draklive
+++ b/draklive
@@ -287,10 +287,11 @@ sub post_install_system {
$modules_conf->write;
}
+ my $mount_options = $live->{media}->get_media_setting('mount_options') || "defaults";
output_with_perm($live->get_system_root . '/etc/fstab', 0644,
$live->{mount}{overlay}
- ? "none / $live->{mount}{overlay} defaults 0 0\n"
- : $live->{media}->get_media_setting('source') . " / " . $live->{media}->get_media_setting('fs') . " defaults 1 1\n"
+ ? "none / $live->{mount}{overlay} $mount_options 0 0\n"
+ : $live->{media}->get_media_setting('source') . " / " . $live->{media}->get_media_setting('fs') . " $mount_options 1 1\n"
) unless $live->{system}{skip_fstab};
#- interactive mode can lead to race in initscripts