05/05/18 20:21:24 P3ryhU1l
あのぅ、grub-installのCreate the device map fileにまんま書いてるんですが、、、
#!/bin/sh
device_map=/boot/grub/device.map
if test -f "$device_map"; then
rm -f $device_map
fi
sync
grub --batch --device-map=$device_map <<EOF >&/dev/null
quit
EOF
fi
こんな感じ。まずはgrub-installを観察して下さい。