Changeset 2086 in MondoRescue


Ignore:
Timestamp:
Dec 14, 2008, 3:43:11 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • use the distro df instead of the busybox one, to better support -P option usage now.
Location:
branches/2.2.8/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mindi/deplist.txt

    r2072 r2086  
    5353/usr/bin/ldd
    5454/usr/bin/strace
     55# busybox df doesn't support -P which is used now
     56/bin/df
    5557
    5658#
  • branches/2.2.8/mindi/rootfs/sbin/init

    r2081 r2086  
    201201
    202202
    203 HowMuchFreeSpaceOnRamdisk() {
    204    df -m -P | grep /dev/ram | head -n1 | tr -s '\t' ' ' | cut -d' ' -f4
    205 }
    206 
    207 
    208 
    209203PauseForRaids() {
    210204    if [ "`dmesg | grep -i "RAID Controller"`" != "" ] || [ "`dmesg | grep -i "Vendor: 3ware"`" != "" ] ; then
     
    360354
    361355
    362 
    363 SpaceTests() {
    364     [ -e "/tmp/filelist.full" ] && cp /tmp/filelist.full /tmp/FLF
    365     if [ "`HowMuchFreeSpaceOnRamdisk`" -le "3" ] ; then
    366         LogIt "Ramdisk is a bit smaller than I would like." 1
    367         LogIt "Please re-run Mondo/Mindi but edit /usr/local/mindi first" 1
    368         LogIt "and set EXTRA_SPACE to something high, e.g. 8000" 1
    369         Die "Aborting. Please reboot."
    370     fi
    371     rm -f /tmp/FLF
    372 }
    373356
    374357StartUSBKbd() {
     
    728711    cp -af /dev/md2 /dev/md/2 2> /dev/null
    729712fi
    730 # SpaceTests; # Mandrake Linux 8.1 doesn't like this
    731713[ -e "/tmp/mountlist.txt" ] && cp -f /tmp/mountlist.txt /tmp/mountlist.original
    732714
Note: See TracChangeset for help on using the changeset viewer.