39 |
recheck=no |
recheck=no |
40 |
debug=no |
debug=no |
41 |
|
|
42 |
|
# look for secure tempfile creation wrappers on this platform |
43 |
|
if test -x /bin/tempfile; then |
44 |
|
mkstemp="/bin/tempfile --prefix=grub" |
45 |
|
elif test -x /bin/mktemp; then |
46 |
|
mkstemp="/bin/mktemp /tmp/grub-install.log.XXXXXX" |
47 |
|
else |
48 |
|
mkstemp="" |
49 |
|
fi |
50 |
|
|
51 |
# Usage: usage |
# Usage: usage |
52 |
# Print the usage. |
# Print the usage. |
53 |
usage () { |
usage () { |
277 |
: |
: |
278 |
else |
else |
279 |
# Create a safe temporary file. |
# Create a safe temporary file. |
280 |
test -x /bin/tempfile && log_file=`tempfile --prefix=grub` |
test -n "$mkstemp" && log_file=`$mkstemp` |
281 |
|
|
282 |
$grub_shell --batch --device-map=$device_map <<EOF >$log_file |
$grub_shell --batch --device-map=$device_map <<EOF >$log_file |
283 |
quit |
quit |
351 |
done |
done |
352 |
|
|
353 |
# Create a safe temporary file. |
# Create a safe temporary file. |
354 |
test -x /bin/tempfile && log_file=`tempfile --prefix=grub` |
test -n "$mkstemp" && log_file=`$mkstemp` |
355 |
|
|
356 |
# Now perform the installation. |
# Now perform the installation. |
357 |
$grub_shell --batch --device-map=$device_map <<EOF >$log_file |
$grub_shell --batch --device-map=$device_map <<EOF >$log_file |