barjac

grub2-mkconfig

Oct 22nd, 2010
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.44 KB | None | 0 0
  1. [baz@jackodesktop ~]$ su
  2. Password:
  3. [root@jackodesktop baz]# sh -ex /usr/sbin/grub2-mkconfig
  4. + transform='s&^&&;s,grub,grub2,'
  5. + prefix=/usr
  6. + exec_prefix=/usr
  7. + sbindir=/usr/sbin
  8. + libdir=/usr/lib
  9. + sysconfdir=/etc
  10. + package_version=1.98
  11. + datarootdir=/usr/share
  12. + datadir=/usr/share
  13. ++ sed 's&^&&;s,grub,grub2,'
  14. ++ echo grub
  15. + pkgdatadir=/usr/share/grub2
  16. ++ sed 's&^&&;s,grub,grub2,'
  17. ++ echo /boot/grub
  18. + grub_prefix=/boot/grub2
  19. + grub_cfg=
  20. + grub_mkconfig_dir=/etc/grub.d
  21. ++ echo grub-mkdevicemap
  22. ++ sed 's&^&&;s,grub,grub2,'
  23. + grub_mkdevicemap=/usr/sbin/grub2-mkdevicemap
  24. ++ sed 's&^&&;s,grub,grub2,'
  25. ++ echo grub-probe
  26. + grub_probe=/usr/sbin/grub2-probe
  27. + . /usr/lib/grub/grub-mkconfig_lib
  28. ++ transform='s&^&&;s,grub,grub2,'
  29. ++ prefix=/usr
  30. ++ exec_prefix=/usr
  31. ++ datarootdir=/usr/share
  32. ++ datadir=/usr/share
  33. ++ bindir=/usr/bin
  34. ++ sbindir=/usr/sbin
  35. +++ echo grub
  36. +++ sed 's&^&&;s,grub,grub2,'
  37. ++ pkgdatadir=/usr/share/grub2
  38. ++ test x/usr/sbin/grub2-probe = x
  39. ++ test x = x
  40. +++ echo grub-mkrelpath
  41. +++ sed 's&^&&;s,grub,grub2,'
  42. ++ grub_mkrelpath=/usr/bin/grub2-mkrelpath
  43. + '[' x0 = x ']'
  44. + '[' 0 '!=' 0 ']'
  45. + set /usr/sbin/grub2-mkdevicemap dummy
  46. + test -f /usr/sbin/grub2-mkdevicemap
  47. + :
  48. + set /usr/sbin/grub2-probe dummy
  49. + test -f /usr/sbin/grub2-probe
  50. + :
  51. + mkdir -p /boot/grub2
  52. + test -e /boot/grub2/device.map
  53. + :
  54. ++ /usr/sbin/grub2-probe --target=device /
  55. + GRUB_DEVICE=/dev/sda21
  56. ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs_uuid
  57. + GRUB_DEVICE_UUID=6f367e9a-3377-41cb-afad-fbebc142fa54
  58. ++ /usr/sbin/grub2-probe --target=device /boot
  59. + GRUB_DEVICE_BOOT=/dev/sda21
  60. ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs_uuid
  61. + GRUB_DEVICE_BOOT_UUID=6f367e9a-3377-41cb-afad-fbebc142fa54
  62. ++ /usr/sbin/grub2-probe --target=fs /
  63. + GRUB_FS=ext2
  64. + test -f /etc/default/grub
  65. + . /etc/default/grub
  66. ++ GRUB_THEME=/boot/themes/proto/theme.txt
  67. + '[' x '!=' x ']'
  68. + case x${GRUB_TERMINAL_OUTPUT} in
  69. + test -e /boot/grub2/gfxterm.mod
  70. ++ head -n 1 /boot/grub2/video.lst
  71. + GRUB_VIDEO_BACKEND=vbe
  72. + '[' -n vbe ']'
  73. + GRUB_TERMINAL_OUTPUT=gfxterm
  74. + case ${GRUB_TERMINAL_OUTPUT} in
  75. + '[' -n '' ']'
  76. + for dir in '${pkgdatadir}' /boot/grub /usr/share/grub
  77. + for basename in unicode unifont ascii
  78. + path=/usr/share/grub2/unicode.pf2
  79. + is_path_readable_by_grub /usr/share/grub2/unicode.pf2
  80. + path=/usr/share/grub2/unicode.pf2
  81. + test -e /usr/share/grub2/unicode.pf2
  82. + return 1
  83. + continue
  84. + for basename in unicode unifont ascii
  85. + path=/usr/share/grub2/unifont.pf2
  86. + is_path_readable_by_grub /usr/share/grub2/unifont.pf2
  87. + path=/usr/share/grub2/unifont.pf2
  88. + test -e /usr/share/grub2/unifont.pf2
  89. + return 1
  90. + continue
  91. + for basename in unicode unifont ascii
  92. + path=/usr/share/grub2/ascii.pf2
  93. + is_path_readable_by_grub /usr/share/grub2/ascii.pf2
  94. + path=/usr/share/grub2/ascii.pf2
  95. + test -e /usr/share/grub2/ascii.pf2
  96. + return 1
  97. + continue
  98. + for dir in '${pkgdatadir}' /boot/grub /usr/share/grub
  99. + for basename in unicode unifont ascii
  100. + path=/boot/grub/unicode.pf2
  101. + is_path_readable_by_grub /boot/grub/unicode.pf2
  102. + path=/boot/grub/unicode.pf2
  103. + test -e /boot/grub/unicode.pf2
  104. + return 1
  105. + continue
  106. + for basename in unicode unifont ascii
  107. + path=/boot/grub/unifont.pf2
  108. + is_path_readable_by_grub /boot/grub/unifont.pf2
  109. + path=/boot/grub/unifont.pf2
  110. + test -e /boot/grub/unifont.pf2
  111. + return 1
  112. + continue
  113. + for basename in unicode unifont ascii
  114. + path=/boot/grub/ascii.pf2
  115. + is_path_readable_by_grub /boot/grub/ascii.pf2
  116. + path=/boot/grub/ascii.pf2
  117. + test -e /boot/grub/ascii.pf2
  118. + return 1
  119. + continue
  120. + for dir in '${pkgdatadir}' /boot/grub /usr/share/grub
  121. + for basename in unicode unifont ascii
  122. + path=/usr/share/grub/unicode.pf2
  123. + is_path_readable_by_grub /usr/share/grub/unicode.pf2
  124. + path=/usr/share/grub/unicode.pf2
  125. + test -e /usr/share/grub/unicode.pf2
  126. + return 1
  127. + continue
  128. + for basename in unicode unifont ascii
  129. + path=/usr/share/grub/unifont.pf2
  130. + is_path_readable_by_grub /usr/share/grub/unifont.pf2
  131. + path=/usr/share/grub/unifont.pf2
  132. + test -e /usr/share/grub/unifont.pf2
  133. + return 1
  134. + continue
  135. + for basename in unicode unifont ascii
  136. + path=/usr/share/grub/ascii.pf2
  137. + is_path_readable_by_grub /usr/share/grub/ascii.pf2
  138. + path=/usr/share/grub/ascii.pf2
  139. + test -e /usr/share/grub/ascii.pf2
  140. + return 1
  141. + continue
  142. + '[' -z '' ']'
  143. + unset GRUB_TERMINAL_OUTPUT
  144. + export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES GRUB_VIDEO_BACKEND
  145. + export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET GRUB_TIMEOUT GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_LINUX_RECOVERY GRUB_GFXMODE GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER GRUB_INIT_TUNE GRUB_SAVEDEFAULT
  146. + test x '!=' x
  147. + echo 'Generating grub.cfg ...'
  148. Generating grub.cfg ...
  149. + cat
  150. #
  151. # DO NOT EDIT THIS FILE
  152. #
  153. # It is automatically generated by /usr/sbin/grub2-mkconfig using templates
  154. # from /etc/grub.d and settings from /etc/default/grub
  155. #
  156. + for i in '${grub_mkconfig_dir}/*'
  157. + case "$i" in
  158. + grub_file_is_not_garbage /etc/grub.d/00_header
  159. + test -f /etc/grub.d/00_header
  160. + case "$1" in
  161. + return 0
  162. + test -x /etc/grub.d/00_header
  163. + echo
  164.  
  165. + echo '### BEGIN /etc/grub.d/00_header ###'
  166. ### BEGIN /etc/grub.d/00_header ###
  167. + /etc/grub.d/00_header
  168. + transform='s&^&&;s,grub,grub2,'
  169. + prefix=/usr
  170. + exec_prefix=/usr
  171. + libdir=/usr/lib
  172. ++ echo /boot/grub
  173. ++ sed 's&^&&;s,grub,grub2,'
  174. + grub_prefix=/boot/grub2
  175. ++ echo /boot/grub/locale
  176. ++ sed 's&^&&;s,grub,grub2,'
  177. + locale_dir=/boot/grub2/locale
  178. ++ echo en_GB.UTF-8
  179. ++ cut -d _ -f 1
  180. + grub_lang=en
  181. + . /usr/lib/grub/grub-mkconfig_lib
  182. ++ transform='s&^&&;s,grub,grub2,'
  183. ++ prefix=/usr
  184. ++ exec_prefix=/usr
  185. ++ datarootdir=/usr/share
  186. ++ datadir=/usr/share
  187. ++ bindir=/usr/bin
  188. ++ sbindir=/usr/sbin
  189. +++ sed 's&^&&;s,grub,grub2,'
  190. +++ echo grub
  191. ++ pkgdatadir=/usr/share/grub2
  192. ++ test x = x
  193. +++ sed 's&^&&;s,grub,grub2,'
  194. +++ echo grub-probe
  195. ++ grub_probe=/usr/sbin/grub2-probe
  196. ++ test x = x
  197. +++ echo grub-mkrelpath
  198. +++ sed 's&^&&;s,grub,grub2,'
  199. ++ grub_mkrelpath=/usr/bin/grub2-mkrelpath
  200. + '[' x = x ']'
  201. + GRUB_DEFAULT=0
  202. + '[' x0 = xsaved ']'
  203. + '[' x = x ']'
  204. + GRUB_TIMEOUT=5
  205. + '[' x = x ']'
  206. + GRUB_GFXMODE=640x480
  207. + cat
  208. if [ -s $prefix/grubenv ]; then
  209. load_env
  210. fi
  211. set default="0"
  212. if [ ${prev_saved_entry} ]; then
  213. set saved_entry=${prev_saved_entry}
  214. save_env saved_entry
  215. set prev_saved_entry=
  216. save_env prev_saved_entry
  217. set boot_once=true
  218. fi
  219.  
  220. function savedefault {
  221. if [ -z ${boot_once} ]; then
  222. saved_entry=${chosen}
  223. save_env saved_entry
  224. fi
  225. }
  226. + case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in
  227. + case x${GRUB_TERMINAL_INPUT} in
  228. + case x${GRUB_TERMINAL_OUTPUT} in
  229. + '[' xen_GB.UTF-8 '!=' xC ']'
  230. ++ /usr/sbin/grub2-probe --target=device /boot/grub2/locale
  231. + prepare_grub_to_access_device /dev/sda21
  232. + device=/dev/sda21
  233. ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=abstraction
  234. + abstraction=
  235. ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs
  236. + fs=ext2
  237. + for module in '${fs}'
  238. + echo 'insmod ext2'
  239. insmod ext2
  240. ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=drive
  241. + echo 'set root='\''(hd0,21)'\'''
  242. set root='(hd0,21)'
  243. ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs_uuid
  244. + fs_uuid=6f367e9a-3377-41cb-afad-fbebc142fa54
  245. + echo 'search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54'
  246. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  247. + cat
  248. ++ make_system_path_relative_to_its_root /boot/grub2/locale
  249. +++ /usr/bin/grub2-mkrelpath /boot/grub2/locale
  250. ++ path=/boot/grub2/locale
  251. ++ case "`uname 2>/dev/null`" in
  252. +++ uname
  253. ++ echo /boot/grub2/locale
  254. set locale_dir=($root)/boot/grub2/locale
  255. set lang=en
  256. insmod gettext
  257. + '[' x '!=' x ']'
  258. + cat
  259. set timeout=5
  260. + '[' x '!=' x ']'
  261. + echo '### END /etc/grub.d/00_header ###'
  262. ### END /etc/grub.d/00_header ###
  263. + for i in '${grub_mkconfig_dir}/*'
  264. + case "$i" in
  265. + for i in '${grub_mkconfig_dir}/*'
  266. + case "$i" in
  267. + grub_file_is_not_garbage /etc/grub.d/10_linux
  268. + test -f /etc/grub.d/10_linux
  269. + case "$1" in
  270. + return 0
  271. + test -x /etc/grub.d/10_linux
  272. + echo
  273.  
  274. + echo '### BEGIN /etc/grub.d/10_linux ###'
  275. ### BEGIN /etc/grub.d/10_linux ###
  276. + /etc/grub.d/10_linux
  277. Found linux image: /boot/vmlinuz-2.6.33.7-desktop-69mib
  278. Found initrd image: /boot/initrd-2.6.33.7-desktop-69mib.img
  279. menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-69mib" --class gnu-linux --class gnu --class os {
  280. set gfxpayload=keep
  281. insmod ext2
  282. set root='(hd0,21)'
  283. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  284. echo Loading Linux 2.6.33.7-desktop-69mib ...
  285. linux /boot/vmlinuz-2.6.33.7-desktop-69mib root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
  286. echo Loading initial ramdisk ...
  287. initrd /boot/initrd-2.6.33.7-desktop-69mib.img
  288. }
  289. menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-69mib (recovery mode)" --class gnu-linux --class gnu --class os {
  290. set gfxpayload=keep
  291. insmod ext2
  292. set root='(hd0,21)'
  293. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  294. echo Loading Linux 2.6.33.7-desktop-69mib ...
  295. linux /boot/vmlinuz-2.6.33.7-desktop-69mib root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
  296. echo Loading initial ramdisk ...
  297. initrd /boot/initrd-2.6.33.7-desktop-69mib.img
  298. }
  299. Found linux image: /boot/vmlinuz-2.6.33.7-desktop-2mnb
  300. Found initrd image: /boot/initrd-2.6.33.7-desktop-2mnb.img
  301. menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-2mnb" --class gnu-linux --class gnu --class os {
  302. set gfxpayload=keep
  303. insmod ext2
  304. set root='(hd0,21)'
  305. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  306. echo Loading Linux 2.6.33.7-desktop-2mnb ...
  307. linux /boot/vmlinuz-2.6.33.7-desktop-2mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
  308. echo Loading initial ramdisk ...
  309. initrd /boot/initrd-2.6.33.7-desktop-2mnb.img
  310. }
  311. menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-2mnb (recovery mode)" --class gnu-linux --class gnu --class os {
  312. set gfxpayload=keep
  313. insmod ext2
  314. set root='(hd0,21)'
  315. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  316. echo Loading Linux 2.6.33.7-desktop-2mnb ...
  317. linux /boot/vmlinuz-2.6.33.7-desktop-2mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
  318. echo Loading initial ramdisk ...
  319. initrd /boot/initrd-2.6.33.7-desktop-2mnb.img
  320. }
  321. Found linux image: /boot/vmlinuz-2.6.33.7-desktop-1mnb
  322. Found initrd image: /boot/initrd-2.6.33.7-desktop-1mnb.img
  323. menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-1mnb" --class gnu-linux --class gnu --class os {
  324. set gfxpayload=keep
  325. insmod ext2
  326. set root='(hd0,21)'
  327. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  328. echo Loading Linux 2.6.33.7-desktop-1mnb ...
  329. linux /boot/vmlinuz-2.6.33.7-desktop-1mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
  330. echo Loading initial ramdisk ...
  331. initrd /boot/initrd-2.6.33.7-desktop-1mnb.img
  332. }
  333. menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-1mnb (recovery mode)" --class gnu-linux --class gnu --class os {
  334. set gfxpayload=keep
  335. insmod ext2
  336. set root='(hd0,21)'
  337. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  338. echo Loading Linux 2.6.33.7-desktop-1mnb ...
  339. linux /boot/vmlinuz-2.6.33.7-desktop-1mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
  340. echo Loading initial ramdisk ...
  341. initrd /boot/initrd-2.6.33.7-desktop-1mnb.img
  342. }
  343. Found linux image: /boot/vmlinuz-desktop
  344. Found initrd image: /boot/initrd-desktop.img
  345. menuentry "GNU/Linux, with Linux desktop" --class gnu-linux --class gnu --class os {
  346. insmod ext2
  347. set root='(hd0,21)'
  348. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  349. echo Loading Linux desktop ...
  350. linux /boot/vmlinuz-desktop root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
  351. echo Loading initial ramdisk ...
  352. initrd /boot/initrd-desktop.img
  353. }
  354. menuentry "GNU/Linux, with Linux desktop (recovery mode)" --class gnu-linux --class gnu --class os {
  355. insmod ext2
  356. set root='(hd0,21)'
  357. search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
  358. echo Loading Linux desktop ...
  359. linux /boot/vmlinuz-desktop root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
  360. echo Loading initial ramdisk ...
  361. initrd /boot/initrd-desktop.img
  362. }
  363. + echo '### END /etc/grub.d/10_linux ###'
  364. ### END /etc/grub.d/10_linux ###
  365. + for i in '${grub_mkconfig_dir}/*'
  366. + case "$i" in
  367. + grub_file_is_not_garbage /etc/grub.d/30_os-prober
  368. + test -f /etc/grub.d/30_os-prober
  369. + case "$1" in
  370. + return 0
  371. + test -x /etc/grub.d/30_os-prober
  372. + echo
  373.  
  374. + echo '### BEGIN /etc/grub.d/30_os-prober ###'
  375. ### BEGIN /etc/grub.d/30_os-prober ###
  376. + /etc/grub.d/30_os-prober
  377. + echo '### END /etc/grub.d/30_os-prober ###'
  378. ### END /etc/grub.d/30_os-prober ###
  379. + for i in '${grub_mkconfig_dir}/*'
  380. + case "$i" in
  381. + grub_file_is_not_garbage /etc/grub.d/40_custom
  382. + test -f /etc/grub.d/40_custom
  383. + case "$1" in
  384. + return 0
  385. + test -x /etc/grub.d/40_custom
  386. + echo
  387.  
  388. + echo '### BEGIN /etc/grub.d/40_custom ###'
  389. ### BEGIN /etc/grub.d/40_custom ###
  390. + /etc/grub.d/40_custom
  391. # This file provides an easy way to add custom menu entries. Simply type the
  392. # menu entries you want to add after this comment. Be careful not to change
  393. # the 'exec tail' line above.
  394. + echo '### END /etc/grub.d/40_custom ###'
  395. ### END /etc/grub.d/40_custom ###
  396. + for i in '${grub_mkconfig_dir}/*'
  397. + case "$i" in
  398. + grub_file_is_not_garbage /etc/grub.d/90_persistent
  399. + test -f /etc/grub.d/90_persistent
  400. + case "$1" in
  401. + return 0
  402. + test -x /etc/grub.d/90_persistent
  403. + echo
  404.  
  405. + echo '### BEGIN /etc/grub.d/90_persistent ###'
  406. ### BEGIN /etc/grub.d/90_persistent ###
  407. + /etc/grub.d/90_persistent
  408. + echo '### END /etc/grub.d/90_persistent ###'
  409. ### END /etc/grub.d/90_persistent ###
  410. + for i in '${grub_mkconfig_dir}/*'
  411. + case "$i" in
  412. + grub_file_is_not_garbage /etc/grub.d/README
  413. + test -f /etc/grub.d/README
  414. + case "$1" in
  415. + return 0
  416. + test -x /etc/grub.d/README
  417. + test x '!=' x
  418. + echo done
  419. done
  420. [root@jackodesktop baz]#
Add Comment
Please, Sign In to add comment