forked from pikhq/sabotage
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add efibootmgr for efi64 boot manager manipulation
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |