Changeset 2351 in MondoRescue for branches/2.2.10/mindi/analyze-my-lvm


Ignore:
Timestamp:
Aug 28, 2009, 2:41:30 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Replacement of some fgets by mr_getline to allow for dyn. memory management.
  • Backport of SElinux fix from 2.2.9
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/analyze-my-lvm

    r2244 r2351  
    8686    current_VG=$1
    8787    VG_info_file=$MINDI_TMP/$$.vg-info.txt
    88     $LVMCMD vgdisplay $current_VG > $VG_info_file
     88    # We use cat here as a way to avoid SElinux to prevent us from writing in $VG_info_file
     89    $LVMCMD vgdisplay $current_VG | cat > $VG_info_file
    8990    max_logical_volumes=`GetValueFromField "$VG_info_file" "MAX LV"`
    9091    [ $max_logical_volumes -ge 256 ] && max_logical_volumes=255
Note: See TracChangeset for help on using the changeset viewer.