Skip to content

Instantly share code, notes, and snippets.

-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFmI9C4BEADMmZ08/sE2N4gzx8pWZYfcRy4N5g7pDDaYBYKz8ZPNvUEjRlQN
kTu+eIvEZQPDFM3mfFkU741phsAvEtT8DaB7Yalb9pd0RobSuSJIKP2OiOnaeqel
86o69lI12HLRYP1ALgYRM2fOVH2DEZ24qkYVdJbLjwSnAb/IKx3DsPoVEUOEhiBq
Mx72PcroCIpDk07xH240O30IhqveqOOH2e1pDphS8NBHx9YuHwZ+NfcL0BrOnHJX
0HM7EJTLTdjqKTS99VxNm9OnmzSZwytC23yEM+CwREh8FReXp+50eyF1pCZiBinF
2JuXKDk8sSnHxg8cmBrlxf73m9BKVMWuDCAp1iLgFk7//ZQlBd3RBWzv36l3BbEd
TioJV2ewD1UMPHta94ncU74cFl6eYyT6WDdNIitPMYrxyZuTKBvBKheu6EXYlXVe
XJSBYTCFWh6HVdcQ2w0/5Yv9SyjzpA2siVpY2ZGbOgTMaXh7zAc73c/MgdBWwCkA
{
"ignition": {
"version": "2.2.0"
},
"systemd": {
"units": [
{
"name": "update-engine.service",
"mask": true
}]
./1000.0.0/grub-2.02_beta2_p20151217-r1/usr/lib/grub/x86_64-efi/linux.mod 09c4f23f0221d856b8a3178204de3bfdf0a733917ef5409143ba75b0e61713348a5d17d866bdd229ac5f8cdf2057d8adc143c5dfd22228bc2bc21121b54d4e1e
./1000.0.0/grub-2.02_beta2_p20151217-r1/usr/lib/grub/x86_64-xen/linux.mod 0d49fc4ac89119c3f958fd88a29a9985444399a45da792991fd265403203c91807ebe16bc11b381289a455458ec123a77d13a79dd44a442b7ae7d36787e5433c
./1000.0.0/grub-2.02_beta2_p20151217-r1/usr/lib/grub/i386-pc/linux.mod f1f9abefa49eeba6a3fe46ba3d254dfc3fa6e2cd8823835e2d982e9cbcd0d82c298e3896dc79d234305d2262a828a7398526906022f8ed7407368725d95e08d8
./1000.0.0/grub-2.02_beta2_p20151217-r3/usr/lib/grub/x86_64-efi/linux.mod 225b0dae7f1183676c10f81490f7ceb572971132ecbd17b65e242be31ed9d99fc7951d4090f7c67a4f3dc42992c1dbbde64612ddd274b4d002131a53a58135ac
./1000.0.0/grub-2.02_beta2_p20151217-r3/usr/lib/grub/x86_64-xen/linux.mod 8312346540c786b3ea95a009557801329537d4dcaaaa6f7c7973d4e3f4fedda71697c75972b3993f709765fc5b4b653dab7ec1bb42795026fd66527df9109469
./1000.0.0/g
@ajeddeloh
ajeddeloh / patch.sh
Last active May 1, 2018 18:34
Draft grub updater
set -e
function patch_grub {
# See bug #2400
local file='/boot/coreos/grub/i386-pc/linux'
local tmpfile="$(mktemp)"
local escape_hatch='/boot/coreos/grub/skip-bug-2400-patch'
[[ -e "${escape_hatch}" ]] && return
#!/bin/bash
versions="$(curl https://coreos.com/releases/releases.json 2>/dev/null | jq keys | jq .[] | tr -d '\"' | tr '\n' ' ')"
mkdir -p ~/grub-info/
LINUX_MOD='usr/lib/grub/i386-pc/linux.module'
LINUX_DEBUG="/usr/lib/debug/${LINUX_MOD}.debug"
function download_release() {
local major=$(cut -d. -f1 <<< $1)
set -e -o pipefail
file=/boot/coreos/grub/i386-pc/linux
# in case something goes horribly wrong
if [[ ! -e "${file}.bak" ]]; then
cp ${file}.mod ${file}.bak
fi
gunzip -k -S .mod ${file}.mod
#!/bin/bash
set +x
versions="1618.0.0 1688.4.0 1632.3.0"
versions="$(curl https://coreos.com/releases/releases.json 2>/dev/null | jq keys | jq .[] | tr -d '\"' | tr '\n' ' ')"
mkdir -p ~/grub-info/
LINUX_MOD='usr/lib/grub/i386-pc/linux.module'
LINUX_DEBUG="/usr/lib/debug/${LINUX_MOD}.debug"
###
### Load debuging information about GNU GRUB 2 modules into GDB
### automatically. Needs readelf, Perl and gmodule.pl script
###
### $Id: .gdbinit,v 1.1 2006/05/14 11:38:08 lkundrak Exp $
### Lubomir Kundrak <lkudrak@skosi.org>
### Hacked up for more memory mgmt by Andrew Jeddeloh
set architecture i386
###
### Load debuging information about GNU GRUB 2 modules into GDB
### automatically. Needs readelf, Perl and gmodule.pl script
###
### $Id: .gdbinit,v 1.1 2006/05/14 11:38:08 lkundrak Exp $
### Lubomir Kundrak <lkudrak@skosi.org>
###
set architecture i386
#set architecture i386:x64-32:intel
###
### Load debuging information about GNU GRUB 2 modules into GDB
### automatically. Needs readelf, Perl and gmodule.pl script
###
### $Id: .gdbinit,v 1.1 2006/05/14 11:38:08 lkundrak Exp $
### Lubomir Kundrak <lkudrak@skosi.org>
###
set architecture i386:x86-64
#set architecture i8086