Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@sysresccd /mnt/hd/boot/grub % cat device.map
- (fd0) /dev/fd0
- (hd0) /dev/sda
- # Make sure device.map has at least one hd device
- grep -q "^(hd[0-9]\+)" $device_map
- + grep -q '^(hd[0-9]\+)' /boot/grub/device.map
- if [ "x$?" != "x0" ]; then
- echo "No suitable drive was found in the generated device map." 1>&2
- if test $recheck = yes; then
- echo "Reverting to backed up copy." 1>&2
- mv ${device_map}.backup $device_map
- fi
- exit 1
- fi
- + '[' x1 '!=' x0 ']'
- + echo 'No suitable drive was found in the generated device map.'
- No suitable drive was found in the generated device map.
- + test yes = yes
- + echo 'Reverting to backed up copy.'
- Reverting to backed up copy.
- + mv /boot/grub/device.map.backup /boot/grub/device.map
- + exit 1
- [root@sysresccd /]# grep -q '^(hd[0-9]\+)' /boot/grub/device.map
- [root@sysresccd /]#
- [root@sysresccd /]#
- [root@sysresccd /]# grep "^(hd[0-9]\+)" /boot/grub/device.map
- (hd0) /dev/sda
- [root@sysresccd /]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement