diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-09-11 16:56:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-09-11 16:56:08 +0000 |
commit | 7c7e9f4818ece1c20002d8b4c3aee9c575453648 (patch) | |
tree | 158afd71c9a1b76a0e8750b03280e5a85be3bbb8 | |
parent | 4d7847b0c62975bd3f9b6a960ef1721470b537c1 (diff) | |
download | drakiso-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}
-rwxr-xr-x | draklive | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |