~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to util/grub-install.in

Tags: upstream-1.98+20100705
ImportĀ upstreamĀ versionĀ 1.98+20100705

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
force_lba=
51
51
recheck=no
52
52
debug=no
 
53
debug_image=
53
54
 
54
55
if [ "${target_cpu}-${platform}" = "i386-pc" ] ; then
55
56
    disk_module=biosdisk
180
181
    # This is an undocumented feature...
181
182
    --debug)
182
183
        debug=yes ;;
 
184
    --debug-image)
 
185
        debug_image=`argument $option "$@"`; shift;;
 
186
    --debug-image=*)
 
187
        debug_image=`echo "$option" | sed 's/--debug-image=//'` ;;
 
188
 
183
189
    -f | --force)
184
190
        setup_force="--force" ;;
185
191
 
349
355
prefix_drive=
350
356
config_opt=
351
357
 
 
358
rm -f ${grubdir}/load.cfg
 
359
 
 
360
if [ "x${debug_image}" != x ]; then
 
361
    echo "set debug='${debug_image}'" >> ${grubdir}/load.cfg
 
362
    config_opt="-c ${grubdir}/load.cfg "
 
363
fi
 
364
 
352
365
if [ "x${devabstraction_module}" = "x" ] ; then
353
366
    if [ x"${install_device}" != x ]; then
354
367
      if echo "${install_device}" | grep -qx "(.*)" ; then
369
382
          echo "UUID needed with ata mod, but the filesystem containing ${grubdir} does not support UUIDs." 1>&2
370
383
          exit 1
371
384
        fi
372
 
        echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg
 
385
        echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg
373
386
        echo 'set prefix=($root)'"${relative_grubdir}" >> ${grubdir}/load.cfg
374
387
        config_opt="-c ${grubdir}/load.cfg "
375
388
        modules="$modules search_fs_uuid"
379
392
          echo "You attempted a cross-disk install, but the filesystem containing ${grubdir} does not support UUIDs." 1>&2
380
393
          exit 1
381
394
        fi
382
 
        echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg
 
395
        echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg
383
396
        echo 'set prefix=($root)'"${relative_grubdir}" >> ${grubdir}/load.cfg
384
397
        config_opt="-c ${grubdir}/load.cfg "
385
398
        modules="$modules search_fs_uuid"