/[smeserver]/cdrom.image/updates/raidconvert
ViewVC logotype

Diff of /cdrom.image/updates/raidconvert

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by growell, Mon Sep 19 02:45:23 2005 UTC Revision 1.4 by growell, Mon Sep 19 04:50:58 2005 UTC
# Line 63  if [ $found -gt "0" ] ; then Line 63  if [ $found -gt "0" ] ; then
63                  # Check for /etc/fstab on partitions and convert entries                  # Check for /etc/fstab on partitions and convert entries
64                  mount $part /mnt/tmp                  mount $part /mnt/tmp
65                  if [ -r /mnt/tmp/etc/fstab ]; then                  if [ -r /mnt/tmp/etc/fstab ]; then
66                      # XXX - FIXME - unportable hack for fstab.                      cat /mnt/tmp/etc/fstab | sed "s/$disk\([0-9]\+\)/md\1/" \
                     # Only works for 6.x I suspect  
                     cat /mnt/tmp/etc/fstab | sed "s/$disk\([0-9]\+\)/md\1/" | \  
                         sed -e "s:LABEL=/boot1:/dev/md1:" | \  
                         sed -e "s:LABEL=/:/dev/md3:" \  
67                          > /mnt/tmp/etc/fstab.tmp                          > /mnt/tmp/etc/fstab.tmp
68                      mv /mnt/tmp/etc/fstab.tmp /mnt/tmp/etc/fstab                      mv /mnt/tmp/etc/fstab.tmp /mnt/tmp/etc/fstab
69                  fi                  fi


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed