Changeset 3480 in MondoRescue
- Timestamp:
- Oct 16, 2015, 4:05:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3479 r3480 42 42 43 43 EXTRA_SPACE=120000 # increase if you run out of ramdisk space 44 BOOT_SIZE=86000 # size of the boot disk 44 BOOT_SIZE=86000 # size of the boot disk in KB 45 45 46 46 PROMPT_MAKE_CD_IMAGE="yes" … … 1925 1925 # syslinux should be run on a local file (doen't work through NFS Cf: #297) 1926 1926 syslinux $imagefile >> $LOGFILE 2>> $LOGFILE 1927 imagefile2=$imagefile 1927 1928 fi 1928 1929 if [ "$BOOT_TYPE" = "UEFI" ]; then 1929 1930 # Should be GPT in that case to allow direct boot 1930 1931 parted -s $imagefile mklabel gpt 1932 parted -s $imagefile mkpart fat32 1 ${BOOT_SIZE}k 2> /dev/null 1933 kpartx -a $imagefile 1934 imagefile2=/dev/mapper/`kpartx -l $imagefile | awk '{print $1}'` 1931 1935 fi 1932 1936 LogFile "INFO: Creating vfat filesystem on $imagefile" 1933 mkfs.vfat $imagefile >> $LOGFILE 2>> $LOGFILE1937 mkfs.vfat $imagefile2 >> $LOGFILE 2>> $LOGFILE 1934 1938 1935 1939 # Only move it now to its final destination and use it now … … 1937 1941 imagefile=$MINDI_CACHE/mindi-bootroot.img 1938 1942 1939 mount -t vfat -o loop $imagefile $mountpoint || LogAll "ERROR: Cannot mount (PBDI)"1943 mount -t vfat -o loop $imagefile2 $mountpoint || LogAll "ERROR: Cannot mount (PBDI)" 1940 1944 1941 1945 LogFile "INFO: Copying $MINDI_TMP/initrd.img to $mountpoint/initrd.img..." … … 2007 2011 LogAll "WARNING: $BOOT_SIZE""KB boot disk was NOT created\n" 2008 2012 fi 2009 #[ "$imagefile" != "" ] && rm -f $imagefile2010 2013 [ "$retval" -ne "0" ] && LogAll "ERROR: PrepareBootDiskImage() is returning $retval" 2011 2014 return $retval
Note:
See TracChangeset
for help on using the changeset viewer.