Skip to content

Instantly share code, notes, and snippets.

@qubitrenegade
Created May 9, 2018 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qubitrenegade/7d2a121ce65777bf360d4e944e16d4d6 to your computer and use it in GitHub Desktop.
Save qubitrenegade/7d2a121ce65777bf360d4e944e16d4d6 to your computer and use it in GitHub Desktop.
hab core/grub install log
[root@hab-grub ~]# curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9471 100 9471 0 0 15818 0 --:--:-- --:--:-- --:--:-- 15811
--> hab-install: Installing Habitat 'hab' program
--> hab-install: Downloading via curl: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz?bt_package=hab-x86_64-linux
--> hab-install: Downloading via curl: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum?bt_package=hab-x86_64-linux
--> hab-install: Renaming downloaded archive files
‘/var/tmp/tmp.D2n4KghYcL/hab-latest.tar.gz’ -> ‘/var/tmp/tmp.D2n4KghYcL/hab-0.55.0-20180321220925-x86_64-linux.tar.gz’
‘/var/tmp/tmp.D2n4KghYcL/hab-latest.tar.gz.sha256sum’ -> ‘/var/tmp/tmp.D2n4KghYcL/hab-0.55.0-20180321220925-x86_64-linux.tar.gz.sha256sum’
--> hab-install: GnuPG tooling found, verifying the shasum digest is properly signed
--> hab-install: Downloading via curl: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum.asc?bt_package=hab-x86_64-linux
--> hab-install: Downloading via curl: https://bintray.com/user/downloadSubjectPublicKey?username=habitat
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: Signature made Wed 21 Mar 2018 10:36:41 PM UTC using RSA key ID 7F61CCE7
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: Good signature from "Habitat Packages <packages@habitat.sh>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 49EB C7FF 577F 0B15 A930 821C F27D 6DD6 7F61 CCE7
--> hab-install: Verifying the shasum digest matches the downloaded archive
hab-0.55.0-20180321220925-x86_64-linux.tar.gz: OK
--> hab-install: Extracting /var/tmp/tmp.D2n4KghYcL/hab-0.55.0-20180321220925-x86_64-linux.tar.gz
--> hab-install: Installing Habitat package using temporarily downloaded hab
bash: line 265: /var/tmp/tmp.D2n4KghYcL/hab-0.55.0-20180321220925-x86_64-linux/hab: Permission denied
bash: line 272: /var/tmp/tmp.D2n4KghYcL/hab-0.55.0-20180321220925-x86_64-linux/hab: Permission denied
bash: line 273: /var/tmp/tmp.D2n4KghYcL/hab-0.55.0-20180321220925-x86_64-linux/hab: Permission denied
xxx hab-install: Required command 'hab' not found on PATH
[root@hab-grub ~]# curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo TMPDIR=/root bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9471 100 9471 0 0 32577 0 --:--:-- --:--:-- --:--:-- 32658
--> hab-install: Installing Habitat 'hab' program
--> hab-install: Downloading via curl: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz?bt_package=hab-x86_64-linux
--> hab-install: Downloading via curl: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum?bt_package=hab-x86_64-linux
--> hab-install: Renaming downloaded archive files
‘/root/tmp.7JUcAd3Jae/hab-latest.tar.gz’ -> ‘/root/tmp.7JUcAd3Jae/hab-0.55.0-20180321220925-x86_64-linux.tar.gz’
‘/root/tmp.7JUcAd3Jae/hab-latest.tar.gz.sha256sum’ -> ‘/root/tmp.7JUcAd3Jae/hab-0.55.0-20180321220925-x86_64-linux.tar.gz.sha256sum’
--> hab-install: GnuPG tooling found, verifying the shasum digest is properly signed
--> hab-install: Downloading via curl: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum.asc?bt_package=hab-x86_64-linux
--> hab-install: Downloading via curl: https://bintray.com/user/downloadSubjectPublicKey?username=habitat
gpg: Signature made Wed 21 Mar 2018 10:36:41 PM UTC using RSA key ID 7F61CCE7
gpg: Good signature from "Habitat Packages <packages@habitat.sh>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 49EB C7FF 577F 0B15 A930 821C F27D 6DD6 7F61 CCE7
--> hab-install: Verifying the shasum digest matches the downloaded archive
hab-0.55.0-20180321220925-x86_64-linux.tar.gz: OK
--> hab-install: Extracting /root/tmp.7JUcAd3Jae/hab-0.55.0-20180321220925-x86_64-linux.tar.gz
--> hab-install: Installing Habitat package using temporarily downloaded hab
» Installing core/hab from channel 'stable'
↓ Downloading core/hab/0.55.0/20180321220925
2.71 MB / 2.71 MB \ [=========================================] 100.00 % 507.53 KB/s
�› Verifying core/hab/0.55.0/20180321220925
↓ Downloading core-20160810182414 public origin key
75 B / 75 B | [=================================================] 100.00 % 2.50 MB/s
☑ Cached core-20160810182414 public origin key
✓ Installed core/hab/0.55.0/20180321220925
★ Install of core/hab/0.55.0/20180321220925 complete with 1 new packages installed.
» Binlinking hab from core/hab into /bin
★ Binlinked hab from core/hab/0.55.0/20180321220925 to /bin/hab
--> hab-install: Checking installed hab version
hab 0.55.0/20180321220925
--> hab-install: Installation of Habitat 'hab' program complete.
[root@hab-grub ~]# grub2-mkconfig
Generating grub configuration file ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set pager=1
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
terminal_output console
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
### END /etc/grub.d/00_tuned ###
### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
source ${prefix}/user.cfg
if [ -n ${GRUB2_PASSWORD} ]; then
set superusers="root"
export superusers
password_pbkdf2 root ${GRUB2_PASSWORD}
fi
fi
### END /etc/grub.d/01_users ###
### BEGIN /etc/grub.d/10_linux ###
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
menuentry 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.el7.x86_64-advanced-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 940ae1ee-f435-4b54-9df7-0390a553a103
else
search --no-floppy --fs-uuid --set=root 940ae1ee-f435-4b54-9df7-0390a553a103
fi
linux16 /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/vg_root-lv_root ro net.ifnames=0 biosdevname=0 crashkernel=auto rd.lvm.lv=vg_root/lv_root rhgb quiet audit=1
initrd16 /initramfs-3.10.0-327.el7.x86_64.img
}
Found linux image: /boot/vmlinuz-0-rescue-c3e3d60259794768ab8f84d26994da29
Found initrd image: /boot/initramfs-0-rescue-c3e3d60259794768ab8f84d26994da29.img
menuentry 'CentOS Linux (0-rescue-c3e3d60259794768ab8f84d26994da29) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-c3e3d60259794768ab8f84d26994da29-advanced-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 940ae1ee-f435-4b54-9df7-0390a553a103
else
search --no-floppy --fs-uuid --set=root 940ae1ee-f435-4b54-9df7-0390a553a103
fi
linux16 /vmlinuz-0-rescue-c3e3d60259794768ab8f84d26994da29 root=/dev/mapper/vg_root-lv_root ro net.ifnames=0 biosdevname=0 crashkernel=auto rd.lvm.lv=vg_root/lv_root rhgb quiet audit=1
initrd16 /initramfs-0-rescue-c3e3d60259794768ab8f84d26994da29.img
}
if [ "x$default" = 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)' ]; then default='Advanced options for CentOS Linux>CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)'; fi;
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
done
[root@hab-grub ~]# rpm -qa | grep grub
grub2-tools-2.02-0.29.el7.centos.x86_64
grub2-2.02-0.29.el7.centos.x86_64
grubby-8.28-17.el7.x86_64
[root@hab-grub ~]# yum remove grub2 grub2-tools
[root@hab-grub ~]# hab pkg install core/grub
» Installing core/grub from channel 'stable'
↓ Downloading core/grub/2.02/20180416191836
4.63 MB / 4.63 MB | [=========================================] 100.00 % 716.37 KB/s
�› Verifying core/grub/2.02/20180416191836
↓ Downloading core-20180119235000 public origin key
75 B / 75 B | [=================================================] 100.00 % 2.11 MB/s
☑ Cached core-20180119235000 public origin key
↓ Downloading core/acl/2.2.52/20170513213108
90.15 KB / 90.15 KB \ [=======================================] 100.00 % 497.59 KB/s
�› Verifying core/acl/2.2.52/20170513213108
↓ Downloading core/attr/2.4.47/20170513213059
63.08 KB / 63.08 KB / [=======================================] 100.00 % 646.62 KB/s
�› Verifying core/attr/2.4.47/20170513213059
↓ Downloading core/bzip2/1.0.6/20170513212938
57.60 KB / 57.60 KB | [=======================================] 100.00 % 454.48 KB/s
�› Verifying core/bzip2/1.0.6/20170513212938
↓ Downloading core/devicemapper/2.02.171/20170525205743
831.23 KB / 831.23 KB | [=====================================] 100.00 % 393.52 KB/s
�› Verifying core/devicemapper/2.02.171/20170525205743
↓ Downloading core/elfutils/0.170/20180416191635
585.26 KB / 585.26 KB / [=====================================] 100.00 % 567.03 KB/s
�› Verifying core/elfutils/0.170/20180416191635
↓ Downloading core/gcc-libs/5.2.0/20170513212920
1.74 MB / 1.74 MB - [=========================================] 100.00 % 473.95 KB/s
�› Verifying core/gcc-libs/5.2.0/20170513212920
↓ Downloading core/gettext/0.19.6/20170513214354
2.38 MB / 2.38 MB | [=========================================] 100.00 % 660.34 KB/s
�› Verifying core/gettext/0.19.6/20170513214354
↓ Downloading core/glibc/2.22/20170513201042
7.76 MB / 7.76 MB \ [=========================================] 100.00 % 544.59 KB/s
�› Verifying core/glibc/2.22/20170513201042
↓ Downloading core/libcap/2.24/20170513213120
31.80 KB / 31.80 KB | [=======================================] 100.00 % 866.41 KB/s
�› Verifying core/libcap/2.24/20170513213120
↓ Downloading core/linux-headers/4.3/20170513200956
798.35 KB / 798.35 KB \ [=====================================] 100.00 % 544.21 KB/s
�› Verifying core/linux-headers/4.3/20170513200956
↓ Downloading core/pcre/8.38/20170513213423
712.11 KB / 712.11 KB - [=====================================] 100.00 % 356.15 KB/s
�› Verifying core/pcre/8.38/20170513213423
↓ Downloading core/xz/5.2.2/20170513214327
235.38 KB / 235.38 KB / [=====================================] 100.00 % 343.75 KB/s
�› Verifying core/xz/5.2.2/20170513214327
↓ Downloading core/zlib/1.2.8/20170513201911
70.96 KB / 70.96 KB / [=======================================] 100.00 % 549.80 KB/s
�› Verifying core/zlib/1.2.8/20170513201911
✓ Installed core/acl/2.2.52/20170513213108
✓ Installed core/attr/2.4.47/20170513213059
✓ Installed core/bzip2/1.0.6/20170513212938
✓ Installed core/devicemapper/2.02.171/20170525205743
✓ Installed core/elfutils/0.170/20180416191635
✓ Installed core/gcc-libs/5.2.0/20170513212920
✓ Installed core/gettext/0.19.6/20170513214354
✓ Installed core/glibc/2.22/20170513201042
✓ Installed core/libcap/2.24/20170513213120
✓ Installed core/linux-headers/4.3/20170513200956
✓ Installed core/pcre/8.38/20170513213423
✓ Installed core/xz/5.2.2/20170513214327
✓ Installed core/zlib/1.2.8/20170513201911
✓ Installed core/grub/2.02/20180416191836
★ Install of core/grub/2.02/20180416191836 complete with 14 new packages installed.
[root@hab-grub ~]# hab pkg binlink core/grub
» Binlinking grub-syslinux2cfg from core/grub into /bin
★ Binlinked grub-syslinux2cfg from core/grub/2.02/20180416191836 to /bin/grub-syslinux2cfg
» Binlinking grub-mknetdir from core/grub into /bin
★ Binlinked grub-mknetdir from core/grub/2.02/20180416191836 to /bin/grub-mknetdir
» Binlinking grub-render-label from core/grub into /bin
★ Binlinked grub-render-label from core/grub/2.02/20180416191836 to /bin/grub-render-label
» Binlinking grub-menulst2cfg from core/grub into /bin
★ Binlinked grub-menulst2cfg from core/grub/2.02/20180416191836 to /bin/grub-menulst2cfg
» Binlinking grub-mkfont from core/grub into /bin
★ Binlinked grub-mkfont from core/grub/2.02/20180416191836 to /bin/grub-mkfont
» Binlinking grub-fstest from core/grub into /bin
★ Binlinked grub-fstest from core/grub/2.02/20180416191836 to /bin/grub-fstest
» Binlinking grub-script-check from core/grub into /bin
★ Binlinked grub-script-check from core/grub/2.02/20180416191836 to /bin/grub-script-check
» Binlinking grub-mkstandalone from core/grub into /bin
★ Binlinked grub-mkstandalone from core/grub/2.02/20180416191836 to /bin/grub-mkstandalone
» Binlinking grub-mkimage from core/grub into /bin
★ Binlinked grub-mkimage from core/grub/2.02/20180416191836 to /bin/grub-mkimage
» Binlinking grub-kbdcomp from core/grub into /bin
★ Binlinked grub-kbdcomp from core/grub/2.02/20180416191836 to /bin/grub-kbdcomp
» Binlinking grub-mkrelpath from core/grub into /bin
★ Binlinked grub-mkrelpath from core/grub/2.02/20180416191836 to /bin/grub-mkrelpath
» Binlinking grub-editenv from core/grub into /bin
★ Binlinked grub-editenv from core/grub/2.02/20180416191836 to /bin/grub-editenv
» Binlinking grub-mkrescue from core/grub into /bin
★ Binlinked grub-mkrescue from core/grub/2.02/20180416191836 to /bin/grub-mkrescue
» Binlinking grub-mklayout from core/grub into /bin
★ Binlinked grub-mklayout from core/grub/2.02/20180416191836 to /bin/grub-mklayout
» Binlinking grub-mkpasswd-pbkdf2 from core/grub into /bin
★ Binlinked grub-mkpasswd-pbkdf2 from core/grub/2.02/20180416191836 to /bin/grub-mkpasswd-pbkdf2
» Binlinking grub-file from core/grub into /bin
★ Binlinked grub-file from core/grub/2.02/20180416191836 to /bin/grub-file
» Binlinking grub-glue-efi from core/grub into /bin
★ Binlinked grub-glue-efi from core/grub/2.02/20180416191836 to /bin/grub-glue-efi
» Binlinking grub-set-default from core/grub into /bin
★ Binlinked grub-set-default from core/grub/2.02/20180416191836 to /bin/grub-set-default
» Binlinking grub-reboot from core/grub into /bin
★ Binlinked grub-reboot from core/grub/2.02/20180416191836 to /bin/grub-reboot
» Binlinking grub-mkconfig from core/grub into /bin
★ Binlinked grub-mkconfig from core/grub/2.02/20180416191836 to /bin/grub-mkconfig
» Binlinking grub-bios-setup from core/grub into /bin
★ Binlinked grub-bios-setup from core/grub/2.02/20180416191836 to /bin/grub-bios-setup
» Binlinking grub-install from core/grub into /bin
★ Binlinked grub-install from core/grub/2.02/20180416191836 to /bin/grub-install
» Binlinking grub-probe from core/grub into /bin
★ Binlinked grub-probe from core/grub/2.02/20180416191836 to /bin/grub-probe
» Binlinking grub-ofpathname from core/grub into /bin
★ Binlinked grub-ofpathname from core/grub/2.02/20180416191836 to /bin/grub-ofpathname
» Binlinking grub-sparc64-setup from core/grub into /bin
★ Binlinked grub-sparc64-setup from core/grub/2.02/20180416191836 to /bin/grub-sparc64-setup
» Binlinking grub-macbless from core/grub into /bin
★ Binlinked grub-macbless from core/grub/2.02/20180416191836 to /bin/grub-macbless
» Binlinking getcap from core/grub into /bin
★ Binlinked getcap from core/grub/2.02/20180416191836 to /bin/getcap
» Binlinking getpcaps from core/grub into /bin
★ Binlinked getpcaps from core/grub/2.02/20180416191836 to /bin/getpcaps
» Binlinking capsh from core/grub into /bin
★ Binlinked capsh from core/grub/2.02/20180416191836 to /bin/capsh
» Binlinking setcap from core/grub into /bin
★ Binlinked setcap from core/grub/2.02/20180416191836 to /bin/setcap
» Binlinking rpcgen from core/grub into /bin
✗✗✗
✗✗✗ File exists (os error 17)
✗✗✗
[root@hab-grub ~]# grub-mkconfig
Generating grub configuration file ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d and settings from /hab/pkgs/core/grub/2.02/20180416191836/etc/default/grub
#
### BEGIN /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/1i1sxn-5pko-GIJ0-oZSa-oNpq-t2kF-HI7fwP/yXp2fj-ETeL-MEYl-doWR-1xTr-ShcA-dmjdwK'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/1i1sxn-5pko-GIJ0-oZSa-oNpq-t2kF-HI7fwP/yXp2fj-ETeL-MEYl-doWR-1xTr-ShcA-dmjdwK' 92d5200a-94b3-45c5-8b1e-2db2717a1bd8
else
search --no-floppy --fs-uuid --set=root 92d5200a-94b3-45c5-8b1e-2db2717a1bd8
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/00_header ###
### BEGIN /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/10_linux ###
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 940ae1ee-f435-4b54-9df7-0390a553a103
else
search --no-floppy --fs-uuid --set=root 940ae1ee-f435-4b54-9df7-0390a553a103
fi
echo 'Loading Linux 3.10.0-327.el7.x86_64 ...'
linux /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/vg_root-lv_root ro
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.10.0-327.el7.x86_64.img
}
submenu 'Advanced options for GNU/Linux' $menuentry_id_option 'gnulinux-advanced-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
menuentry 'GNU/Linux, with Linux 3.10.0-327.el7.x86_64' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.0-327.el7.x86_64-advanced-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 940ae1ee-f435-4b54-9df7-0390a553a103
else
search --no-floppy --fs-uuid --set=root 940ae1ee-f435-4b54-9df7-0390a553a103
fi
echo 'Loading Linux 3.10.0-327.el7.x86_64 ...'
linux /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/vg_root-lv_root ro
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.10.0-327.el7.x86_64.img
}
menuentry 'GNU/Linux, with Linux 3.10.0-327.el7.x86_64 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.0-327.el7.x86_64-recovery-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 940ae1ee-f435-4b54-9df7-0390a553a103
else
search --no-floppy --fs-uuid --set=root 940ae1ee-f435-4b54-9df7-0390a553a103
fi
echo 'Loading Linux 3.10.0-327.el7.x86_64 ...'
linux /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/vg_root-lv_root ro single
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.10.0-327.el7.x86_64.img
}
Found linux image: /boot/vmlinuz-0-rescue-c3e3d60259794768ab8f84d26994da29
Found initrd image: /boot/initramfs-0-rescue-c3e3d60259794768ab8f84d26994da29.img
menuentry 'GNU/Linux, with Linux 0-rescue-c3e3d60259794768ab8f84d26994da29' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-0-rescue-c3e3d60259794768ab8f84d26994da29-advanced-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 940ae1ee-f435-4b54-9df7-0390a553a103
else
search --no-floppy --fs-uuid --set=root 940ae1ee-f435-4b54-9df7-0390a553a103
fi
echo 'Loading Linux 0-rescue-c3e3d60259794768ab8f84d26994da29 ...'
linux /vmlinuz-0-rescue-c3e3d60259794768ab8f84d26994da29 root=/dev/mapper/vg_root-lv_root ro
echo 'Loading initial ramdisk ...'
initrd /initramfs-0-rescue-c3e3d60259794768ab8f84d26994da29.img
}
menuentry 'GNU/Linux, with Linux 0-rescue-c3e3d60259794768ab8f84d26994da29 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-0-rescue-c3e3d60259794768ab8f84d26994da29-recovery-92d5200a-94b3-45c5-8b1e-2db2717a1bd8' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 940ae1ee-f435-4b54-9df7-0390a553a103
else
search --no-floppy --fs-uuid --set=root 940ae1ee-f435-4b54-9df7-0390a553a103
fi
echo 'Loading Linux 0-rescue-c3e3d60259794768ab8f84d26994da29 ...'
linux /vmlinuz-0-rescue-c3e3d60259794768ab8f84d26994da29 root=/dev/mapper/vg_root-lv_root ro single
echo 'Loading initial ramdisk ...'
initrd /initramfs-0-rescue-c3e3d60259794768ab8f84d26994da29.img
}
}
### END /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/10_linux ###
### BEGIN /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/20_linux_xen ###
### END /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/20_linux_xen ###
### BEGIN /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/30_os-prober ###
### END /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/30_os-prober ###
### BEGIN /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/40_custom ###
### BEGIN /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /hab/pkgs/core/grub/2.02/20180416191836/etc/grub.d/41_custom ###
done
[root@hab-grub ~]# reboot
Connection to 254.254.254.254 closed by remote host.
Connection to 254.254.254.254 closed.
myworkstation:~ $ ssh centos@254.254.254.254
Last login: Tue May 8 12:21:12 2018 from 254.254.254.253
[centos@CENTOSTEMPLATE ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment