updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lilo-gfxmenu / mkrescue.diff
blob4d9373623955af3547bce169b0accfff6fd270bb
1 diff -urNp lilo-22.7.orig/mkrescue lilo-22.7/mkrescue
2 --- lilo-22.7.orig/mkrescue 2004-11-16 09:50:08.000000000 +0100
3 +++ lilo-22.7/mkrescue 2005-10-05 16:10:03.000000000 +0200
4 @@ -80,13 +80,13 @@ else
5 config=/etc/lilo.conf
6 fi
8 -tmp=/tmp
9 compact=-c
10 device=/dev/fd0
11 fs=ext2
12 -mount=$tmp/mkrescue-flp
13 -mfile=$tmp/mkrescue-emu
14 -mtemp=$tmp/mkrescue-tmp
15 +tmpbase=${TMPDIR:-/tmp}/mkrescue_$$
16 +mount=$tmpbase/mkrescue-flp
17 +mfile=$tmpbase/mkrescue-emu
18 +mtemp=$tmpbase/mkrescue-tmp
19 loopback=loop0
20 looppart=loop1
21 install=text
22 @@ -179,7 +179,11 @@ then
25 umount $mount 2>/dev/null
26 -rm -rf $mount $mfile 2>/dev/null
27 +rm -rf $tmpbase 2>/dev/null
28 +mkdir $tmpbase || {
29 + echo "Could not create temporary directory."
30 + exit 1
34 while [ $# -gt 0 ]; do
35 @@ -678,7 +682,7 @@ elif [ "$fast" = fast ]; then
38 if [ $debug != true ]; then
39 - rm -f $mfile
40 + rm -rf $tmpbase
43 echo "All done."