diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-09-11 17:10:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-09-11 17:10:11 +0000 |
commit | 3962d4b3713e69569b71688e2ccc681c60d97fdb (patch) | |
tree | 747fb19128f48cf2c4b9ddc2a723ab8e9b5d94ee /perl-install/standalone | |
parent | 45c4d258d7f7d88a44387f614ef0cf401208ed69 (diff) | |
download | drakx-3962d4b3713e69569b71688e2ccc681c60d97fdb.tar drakx-3962d4b3713e69569b71688e2ccc681c60d97fdb.tar.gz drakx-3962d4b3713e69569b71688e2ccc681c60d97fdb.tar.bz2 drakx-3962d4b3713e69569b71688e2ccc681c60d97fdb.tar.xz drakx-3962d4b3713e69569b71688e2ccc681c60d97fdb.zip |
use flag "kudzu" for entries automatically handled by drakupdate_fstab
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/drakupdate_fstab | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab index 130e1ab4f..5a70c431a 100755 --- a/perl-install/standalone/drakupdate_fstab +++ b/perl-install/standalone/drakupdate_fstab @@ -81,6 +81,10 @@ sub set_options { my ($iocharset, $codepage) = lang::fs_options(lang::read()); fs::set_default_options($part, 1, $use_supermount, $security, $iocharset, $codepage); + + my ($options, $unknown) = fs::mount_options_unpack($part); + $options->{kudzu} = 1; + fs::mount_options_pack($part, $options, $unknown); } sub set_mount_point { @@ -136,6 +140,13 @@ sub main { print STDERR "Not found in fstab\n" if $::testing; return; } + foreach (@$existing_fstab_entries) { + if ($_->{options} !~ /\bkudzu\b/) { + print STDERR "Not a 'kudzu'-flagged entry\n" if $::testing; + return; + } + } + my ($s) = fs::prepare_write_fstab($fstab_, '', 'keep_smb_credentials'); output($fstab_file, $s); |