• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

bootable/newinstaller


Commit MetaInfo

Revision653f3bf91fcff889d55e28051c9310bb7b53c4bf (tree)
Time2014-12-16 17:43:21
AuthorOliver Henshaw <oliver.henshaw@gmai...>
CommiterChih-Wei Huang

Log Message

Use a grub device map so that e.g. virtio disks will boot

grub seems to detect sda and hda disks fine but needs a little guidance
to find vda disks.

Change Summary

Incremental Difference

--- a/install/scripts/1-install
+++ b/install/scripts/1-install
@@ -237,10 +237,12 @@ install_to()
237237 d=$(($d+1))
238238 done
239239 p=$((`echo $1 | cut -b4-`-1))
240+ disk=`echo $1 | cut -b-3`
240241 create_menulst $p
241242 create_winitem $1 $d
242243 rm -f /hd/boot/grub/stage1
243- echo "setup (hd$d) (hd$d,$p)" | grub > /dev/tty5
244+ echo "(hd$d) /dev/$disk" > /hd/grub/device.map
245+ echo "setup (hd$d) (hd$d,$p)" | grub --device-map /hd/grub/device.map > /dev/tty5
244246 [ $? -ne 0 ] && return 255
245247 fi
246248