diff options
| author | Tomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com> | 2008-06-17 11:48:22 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com> | 2008-06-17 11:48:22 +0200 |
| commit | a3f2f2b6d33b65266b31e29571fec84f3b61b689 (patch) | |
| tree | df09287d4b4fdd6df933914f5a5f8dd1468bde6e /UCore.pas | |
| parent | 1c828670f3a5cffc32bf527ecac846161711ee45 (diff) | |
| download | tuxcmd-a3f2f2b6d33b65266b31e29571fec84f3b61b689.tar.xz | |
Hide certain fstab mounts
Resolves #1359836
Diffstat (limited to 'UCore.pas')
| -rw-r--r-- | UCore.pas | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2380,8 +2380,11 @@ begin // Get mount name mntent := getmntent(fd); while mntent <> nil do begin + DebugMsg(['FillDefaultFstabMounterItems: found "', mntent^.mnt_dir, '" --> "', mntent^.mnt_fsname, '", fstype ', mntent^.mnt_type]); if (mntent^.mnt_dir <> '/') and (mntent^.mnt_dir <> '/boot') and (Pos('/proc', mntent^.mnt_dir) <> 1) and - (Pos('/dev', mntent^.mnt_dir) <> 1) and (mntent^.mnt_dir <> 'swap') and (mntent^.mnt_dir <> '') then + (Pos('/dev', mntent^.mnt_dir) <> 1) and (Pos('/sys', mntent^.mnt_dir) <> 1) and (mntent^.mnt_dir <> 'swap') and + (mntent^.mnt_type <> 'swap') and (mntent^.mnt_type <> 'rpc_pipefs') and (mntent^.mnt_type <> 'none') and + (mntent^.mnt_dir <> 'none') and (mntent^.mnt_dir <> '') then begin MounterItem := TMounterItem.Create; MounterItem.DisplayText := ''; |
