Skip to content

Instantly share code, notes, and snippets.

@ajeddeloh
ajeddeloh / libostree-2018.2.ebuild
Created February 24, 2018 00:21
Super simple probably incomplete libostree ebuild
# Super simple libostree ebuild. Probably very imcomplete in terms of deps, use flags, etc.
# More of a quick and dirty "I want to play with this so lets get it installed" type of thing
EAPI=6
DESCRIPTION="ostree experimental ebuild"
HOMEPAGE="https://github.com/ostreedev/ostree"
SRC_URI="https://github.com/ostreedev/ostree/releases/download/v2018.2/libostree-2018.2.tar.xz"
LICENSE=""
###
### 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
###
### 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>
### Hacked up for more memory mgmt by Andrew Jeddeloh
set architecture i386
#!/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"
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
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)
@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
./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
{
"ignition": {
"version": "2.2.0"
},
"systemd": {
"units": [
{
"name": "update-engine.service",
"mask": true
}]