Advertisement
Guest User

Untitled

a guest
May 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. root@sysresccd /mnt/hd/boot/grub % cat device.map
  2. (fd0) /dev/fd0
  3. (hd0) /dev/sda
  4.  
  5.  
  6. # Make sure device.map has at least one hd device
  7. grep -q "^(hd[0-9]\+)" $device_map
  8. + grep -q '^(hd[0-9]\+)' /boot/grub/device.map
  9. if [ "x$?" != "x0" ]; then
  10. echo "No suitable drive was found in the generated device map." 1>&2
  11. if test $recheck = yes; then
  12. echo "Reverting to backed up copy." 1>&2
  13. mv ${device_map}.backup $device_map
  14. fi
  15. exit 1
  16. fi
  17. + '[' x1 '!=' x0 ']'
  18. + echo 'No suitable drive was found in the generated device map.'
  19. No suitable drive was found in the generated device map.
  20. + test yes = yes
  21. + echo 'Reverting to backed up copy.'
  22. Reverting to backed up copy.
  23. + mv /boot/grub/device.map.backup /boot/grub/device.map
  24. + exit 1
  25. [root@sysresccd /]# grep -q '^(hd[0-9]\+)' /boot/grub/device.map
  26. [root@sysresccd /]#
  27. [root@sysresccd /]#
  28. [root@sysresccd /]# grep "^(hd[0-9]\+)" /boot/grub/device.map
  29. (hd0) /dev/sda
  30. [root@sysresccd /]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement