Skip to content

Commit

Permalink
add efibootmgr for efi64 boot manager manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
soul9 authored and rofl0r committed Jun 18, 2015
1 parent 89009e6 commit bfe626d
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
14 changes: 14 additions & 0 deletions KEEP/efivar-git.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- efivar.orig/src/makeguids.c
+++ efivar/src/makeguids.c
@@ -99,8 +99,9 @@
if (rc < 0)
err(1, "makeguids: could not read \"%s\"", argv[1]);

- /* strictly speaking, this *has* to be too large. */
- struct guidname *outbuf = calloc(inlen, sizeof (char));
+ /* strictly speaking, this *has* to be too large. Oh so you
+ think a struct takes as much space as a string? Mkay. */
+ struct guidname *outbuf = calloc(inlen, sizeof(char)*8);
if (!outbuf)
err(1, "makeguids");

21 changes: 21 additions & 0 deletions pkg/efibootmgr-git
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[deps]
bash
git
pciutils
zlib
efivar-git
perl

[build]
dest="$S/build/efibootmgr-git"
mkdir -p "$dest"
if [ -d "$dest/efibootmgr" ]; then
cd "$dest/efibootmgr"
git pull
else
cd "$dest"
git clone -b efibootmgr-0.11.0 --depth=1 https://github.com/rhinstaller/efibootmgr.git efibootmgr
cd efibootmgr
fi
sed -i -r 's,sys/pci\.h,pci/pci.h,g' src/lib/scsi_ioctls.c
make DESTDIR="$butch_install_dir" BINDIR="/bin" install
20 changes: 20 additions & 0 deletions pkg/efivar-git
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[deps]
bash
git
popt
perl

[build]
dest="$S/build/efivar-git"
mkdir -p "$dest"
if [ -d "$dest/efivar" ]; then
cd "$dest/efivar"
git pull
else
cd "$dest"
git clone -b efivar-0.14 --depth=1 https://github.com/rhinstaller/efivar.git efivar
cd efivar
fi
patch -p1 < "$K"/efivar-git.patch
make DESTDIR="$butch_install_dir" includedir="/include" bindir="/bin" libdir="/lib" install
ln -s ./libefivar.so.0 "$butch_install_dir"/lib/libefivar.so

0 comments on commit bfe626d

Please sign in to comment.