- Timestamp:
- Oct 22, 2005, 12:31:29 AM (20 years ago)
- Location:
- branches/2.04_berlios
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.04_berlios/mindi/aux-tools/sbin/format-and-kludge-vfat
r30 r85 94 94 exit 1 95 95 fi 96 LogIt "Fixing the boot block of $device with ms-sys" 2 97 ms-sys -w $device 2> /tmp/fakv.log > /dev/null 98 res=$? 99 retval=$(($retval+$res)) 100 if [ "$res" -ne "0" ]; then 101 LogIt "Errors occurred while fixing the boot block of $device!" 1 102 cat /tmp/fakv.log 103 exit 1 96 if [ "`arch`" != "ia64" ] ; then 97 LogIt "Fixing the boot block of $device with ms-sys" 2 98 ms-sys -w $device 2> /tmp/fakv.log > /dev/null 99 res=$? 100 retval=$(($retval+$res)) 101 if [ "$res" -ne "0" ]; then 102 LogIt "Errors occurred while fixing the boot block of $device!" 1 103 cat /tmp/fakv.log 104 exit 1 105 fi 104 106 fi 105 107 [ ! -e "/mnt/tmpK" ] && mkdir /mnt/tmpK -
branches/2.04_berlios/mondo/mondo/common/libmondo-devices.c
r30 r85 1 1 /* libmondo-devices.c Subroutines for handling devices 2 $Id : libmondo-devices.c,v 1.26 2004/06/21 20:20:36 hugo Exp$2 $Id$ 3 3 . 4 4 … … 252 252 253 253 /*@unused@*/ 254 //static char cvsid[] = "$Id : libmondo-devices.c,v 1.26 2004/06/21 20:20:36 hugo Exp$";254 //static char cvsid[] = "$Id$"; 255 255 256 256 extern int g_current_media_number; … … 2669 2669 char *tmp; 2670 2670 char *command; 2671 char *fdisk; 2672 struct stat buf; 2671 2673 2672 2674 malloc_string(tmp); 2673 2675 malloc_string(command); 2676 malloc_string(fdisk); 2674 2677 log_msg(0, "Looking for partition table format type"); 2675 sprintf(command, "fdisk -l %s | grep 'EFI GPT'", drive); 2678 // BERLIOS: Do that temporarily: we need to put back parted2fdisk everywhere 2679 #ifdef __IA64__ 2680 sprintf(fdisk, "/usr/local/bin/fdisk"); 2681 if (stat(fdisk, &buf) != 0) { 2682 #endif 2683 sprintf(fdisk, "/sbin/fdisk"); 2684 #ifdef __IA64__ 2685 } 2686 #endif 2687 log_msg(1, "Using %s",fdisk); 2688 sprintf(command, "%s -l %s | grep 'EFI GPT'", fdisk, drive); 2676 2689 strcpy(tmp, call_program_and_get_last_line_of_output(command)); 2677 2690 if (strstr(tmp,"GPT") == NULL) { … … 2683 2696 paranoid_free(command); 2684 2697 paranoid_free(tmp); 2698 paranoid_free(fdisk); 2685 2699 return(output); 2686 2700 } -
branches/2.04_berlios/mondo/mondo/mondorestore/mondo-prep.c
r71 r85 834 834 sprintf(program, "newfs_msdos -F 32 %s", device); 835 835 #else 836 #ifdef __IA64__ 837 /* For EFI partitions take fat16 838 * as we want to make small ones */ 839 sprintf(program, "mkfs -t %s -F 16 %s", format, device); 840 #else 836 841 sprintf(program, "mkfs -t %s -F 32 %s", format, device); 842 #endif 837 843 #endif 838 844 res = run_program_and_log_output(program, FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.