- Timestamp:
- Apr 4, 2016, 3:40:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3543 r3546 235 235 236 236 AbortHere() { 237 [ "$mountpoint" ] && umount $mountpoint 2>> $LOGFILE237 [ "$mountpoint" ] && sync && umount $mountpoint 2>> $LOGFILE 238 238 Die "Program is terminating in response to signal received from OS/user" 239 239 } … … 284 284 [ "$sss" = "" ] && sss=`grep -F "$included_item" $MINDI_TMP/keymaps.find` 285 285 for ii in $sss ; do 286 286 [ -e "$ii" ] && AddKeyboardMappingFile $ii 287 287 done 288 288 else … … 1622 1622 LogFile "--------------------------------" 1623 1623 echo -en "Kernel size = `du -sk $kernelpath | cut -f1` K\nRamdisk free = $free_space K\n" >> $LOGFILE 1624 sync 1624 1625 umount $MINDI_TMP/target 1625 1626 LogAll "ERROR: Problems while creating boot media." … … 1641 1642 # Some distro do auto mount at that point (Ubuntu) 1642 1643 LogAll "INFO: Unmounting $USBPART just in case" 1644 sync 1643 1645 umount $USBPART 2>> $LOGFILE 1>> $LOGFILE 1644 1646 if [ "$BOOT_TYPE" = "BIOS" ]; then … … 1690 1692 # Some distro do auto mount at that point (Ubuntu) 1691 1693 LogAll "INFO: Unmounting $USBPART just in case again" 1694 sync 1692 1695 umount $USBPART 2>> $LOGFILE 1>> $LOGFILE 1693 1696 # Some distro have a dmsetup conf at that point so removing it Cf: http://trac.mondorescue.org/ticket/651 … … 1749 1752 du -sk $MINDI_TMP/mpt/* >> $LOGFILE 1750 1753 LogFile "--------------------------------" 1754 sync 1751 1755 umount $MINDI_TMP/mpt 1752 1756 LogAll "ERROR: Problems while creating boot media." … … 1778 1782 fi 1779 1783 1784 # Avoids graphical tool to keep the FS mounted 1785 sync 1780 1786 umount $MINDI_TMP/mpt || Die "Unable to unmount $MINDI_TMP/mpt" 1781 1787 … … 1790 1796 # We need the boot image now and what mindi needs at restore time as well 1791 1797 cp -a $MINDI_TMP/mpt2/images/all.tar.gz $MINDI_CACHE/mindi-bootroot.img $MINDI_TMP/mpt/images 1798 # Avoids graphical tool to keep the FS mounted 1799 sync 1792 1800 umount $MINDI_TMP/mpt2 1793 1801 LogFile "----------- target dir content -----------" … … 2920 2928 (cd "$mountpoint" && ln -sf usr/sbin/init linuxrc) 2921 2929 # unmount loop filesystem and create image file using the standard approach 2930 sync 2922 2931 umount $mountpoint || Die "Cannot unmount $tempfile" 2923 2932 dd if=$tempfile bs=1k of=${rdz_fname}.tmp > /dev/null 2> /dev/null … … 2940 2949 # create cpio image file and unmount loop filesystem 2941 2950 (cd "$mountpoint" ; find . -print | cpio -o -H newc 2> /dev/null | gzip -9 > $rdz_fname) 2951 sync 2942 2952 umount $mountpoint || Die "Cannot unmount $tempfile" 2943 2953 # log that we are done
Note:
See TracChangeset
for help on using the changeset viewer.