OSDN Git Service

android-x86/external-efibootmgr.git
10 years agoMove TODO stuff to 0.9
Peter Jones [Fri, 1 Aug 2014 12:44:46 +0000 (08:44 -0400)]
Move TODO stuff to 0.9

Wound up doing some work that's more important than the stuff in the
TODO, so it's all getting moved out to 0.9

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoClean up some whitespace.
Peter Jones [Fri, 1 Aug 2014 12:36:49 +0000 (08:36 -0400)]
Clean up some whitespace.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoAdd the ability to clean up duplicates in BootOrder
Peter Jones [Fri, 1 Aug 2014 12:23:34 +0000 (08:23 -0400)]
Add the ability to clean up duplicates in BootOrder

This adds -D (--remove-dups), which iterates BootOrder and keeps only
the first of any number it finds.  Duplicate entries can happen as a
result of an interaction between fallback.efi and some system firmware,
and this option provides an easy workaround to fix it.

Resolves: rhbz#1097396

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix some leaked memory that shows up in valgrind.
Peter Jones [Fri, 1 Aug 2014 12:03:49 +0000 (08:03 -0400)]
Fix some leaked memory that shows up in valgrind.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoDon't leak memory in remove_from_boot_order()
Peter Jones [Fri, 1 Aug 2014 09:37:05 +0000 (05:37 -0400)]
Don't leak memory in remove_from_boot_order()

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoDon't pass around a format specifier when we don't need to.
Peter Jones [Fri, 1 Aug 2014 08:56:18 +0000 (04:56 -0400)]
Don't pass around a format specifier when we don't need to.

Current code has the format specifier in a function that doesn't
otherwise know about the format, and passes it in to a function that
does.

And it's always been like this.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoCompare should respect the size of the data it compares.
groxxda [Thu, 31 Jul 2014 16:37:37 +0000 (18:37 +0200)]
Compare should respect the size of the data it compares.

10 years agoUse PRIx64 in nvme parsing.
Peter Jones [Tue, 22 Jul 2014 14:11:39 +0000 (10:11 -0400)]
Use PRIx64 in nvme parsing.

This should fix https://github.com/vathpela/efibootmgr/issues/6 , though
I don't know if it'll actually make nvme work.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoClang uses C99 semantics by default for inline keyword.
Daniel Jared Dominguez [Tue, 8 Jul 2014 01:50:50 +0000 (20:50 -0500)]
Clang uses C99 semantics by default for inline keyword.

It's most straightforward not to state get_scsi_idlun is inline.

Signed-off-by: Daniel Jared Dominguez <Jared_Dominguez@Dell.com>
10 years agoVariable "needed" should be of type ssize_t as that's how it's used.
Daniel Jared Dominguez [Mon, 7 Jul 2014 19:18:27 +0000 (14:18 -0500)]
Variable "needed" should be of type ssize_t as that's how it's used.

Signed-off-by: Daniel Jared Dominguez <Jared_Dominguez@Dell.com>
10 years agodata_size in construct_boot_order/set_boot_order is of type size_t, so fix a couple...
Daniel Jared Dominguez [Mon, 7 Jul 2014 19:09:15 +0000 (14:09 -0500)]
data_size in construct_boot_order/set_boot_order is of type size_t, so fix a couple of comparisons involving it.

Signed-off-by: Daniel Jared Dominguez <Jared_Dominguez@Dell.com>
10 years agoFix typo in compare function.
Daniel Jared Dominguez [Mon, 7 Jul 2014 19:02:22 +0000 (14:02 -0500)]
Fix typo in compare function.

Signed-off-by: Daniel Jared Dominguez <Jared_Dominguez@Dell.com>
10 years agoRemove unused function var_num_from_name.
Daniel Jared Dominguez [Mon, 7 Jul 2014 18:58:56 +0000 (13:58 -0500)]
Remove unused function var_num_from_name.

Signed-off-by: Daniel Jared Dominguez <Jared_Dominguez@Dell.com>
10 years agoMitigate apple setting invalid attribute bits in boot variables.
Peter Jones [Tue, 17 Jun 2014 18:05:31 +0000 (14:05 -0400)]
Mitigate apple setting invalid attribute bits in boot variables.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoWe don't actually have docbook hooked up to the builds, so ditch it.
Peter Jones [Mon, 16 Jun 2014 18:26:05 +0000 (14:26 -0400)]
We don't actually have docbook hooked up to the builds, so ditch it.

Frankly I'm more comfortable maintaining groff anyway, but right now
they just get out of sync all the time.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoOnly free hard drive signatures if we've allocated them.
Peter Jones [Mon, 5 May 2014 20:09:09 +0000 (16:09 -0400)]
Only free hard drive signatures if we've allocated them.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoRemove bogus test for optional data length bounds.
Peter Jones [Tue, 29 Apr 2014 15:31:15 +0000 (11:31 -0400)]
Remove bogus test for optional data length bounds.

We're getting the size from subtracting from the actual limit; it can't
be over the limit, and it's not related to the variable we're comparing
it to anyway.

Not sure how I came up with that logic, but it sure is wrong.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake nvme work with "-e 3".
Peter Jones [Mon, 14 Apr 2014 21:19:57 +0000 (17:19 -0400)]
Make nvme work with "-e 3".

This will force a long-form NVME device path.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoAdd support for displaying NVME device paths.
Peter Jones [Mon, 14 Apr 2014 20:49:12 +0000 (16:49 -0400)]
Add support for displaying NVME device paths.

This doesn't actually let you /use/ them yet, but it does show them if
they're there.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoGet a lot more picky with our compiler warnings.
Peter Jones [Mon, 14 Apr 2014 20:39:42 +0000 (16:39 -0400)]
Get a lot more picky with our compiler warnings.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFilenames and github - the worst of both worlds.
Peter Jones [Wed, 2 Apr 2014 14:04:52 +0000 (10:04 -0400)]
Filenames and github - the worst of both worlds.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoCall it 0.7
Peter Jones [Tue, 1 Apr 2014 18:53:43 +0000 (14:53 -0400)]
Call it 0.7

This has been around for a while, and it's not going to get any more
testing without some exposure.  Let's give it a shot.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix device path size and allocation in make_file_path_device_path()
Peter Jones [Thu, 13 Mar 2014 01:31:45 +0000 (21:31 -0400)]
Fix device path size and allocation in make_file_path_device_path()

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix a missing error return.
Peter Jones [Thu, 6 Mar 2014 20:05:58 +0000 (15:05 -0500)]
Fix a missing error return.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoAdd a --keep option to preserve the old BootOrder entries when using -o.
Peter Jones [Fri, 7 Feb 2014 18:33:17 +0000 (13:33 -0500)]
Add a --keep option to preserve the old BootOrder entries when using -o.

So basically if you've got a boot order of:

0000,0001,0018,001A,0019

And you do "efibootmgr -o 001A --keep", you'll get:

001A,0000,0001,0018,0019

And if you subsequently do "efibootmgr -o 0002 --keep" you'll get:

0002,001A,0000,0001,0018,0019

This is to work around a buggy firmware reported in rhbz#889509 ,
which will erroneously try to re-populate BootOrder /and create new
Boot#### entries to do so/ if you supply a BootOrder without the
defaults in it.

This firmware is garbage.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoAdd SATA(x,y,z) device path unparsing.
Peter Jones [Thu, 6 Feb 2014 15:08:24 +0000 (10:08 -0500)]
Add SATA(x,y,z) device path unparsing.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoGet the correct size for device path in our optional data blob.
Peter Jones [Wed, 5 Feb 2014 19:26:00 +0000 (14:26 -0500)]
Get the correct size for device path in our optional data blob.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoAdd some requires to our spec file for efivar-libs and efivar-devel.
Peter Jones [Wed, 5 Feb 2014 18:46:53 +0000 (13:46 -0500)]
Add some requires to our spec file for efivar-libs and efivar-devel.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake Vendor-Defined Message paths show up the same way as in "bcfg boot dump".
Peter Jones [Wed, 5 Feb 2014 18:46:10 +0000 (13:46 -0500)]
Make Vendor-Defined Message paths show up the same way as in "bcfg boot dump".

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake FvFile show up the same way it does in "bcfg boot dump".
Peter Jones [Wed, 5 Feb 2014 18:45:39 +0000 (13:45 -0500)]
Make FvFile show up the same way it does in "bcfg boot dump".

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoHandle bogus malformed variables somewhat more gracefully.
Peter Jones [Wed, 5 Feb 2014 05:38:20 +0000 (00:38 -0500)]
Handle bogus malformed variables somewhat more gracefully.

Because previously we tried to dump what it was saying, but that really
just means crashing.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix gpg path in "make archive".
Peter Jones [Wed, 5 Feb 2014 05:09:17 +0000 (00:09 -0500)]
Fix gpg path in "make archive".

Still pointed at .tar.gz while everything else says .tar.bz2

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake the man page not mention proc, and make it mention efivarfs.
Peter Jones [Wed, 5 Feb 2014 04:53:22 +0000 (23:53 -0500)]
Make the man page not mention proc, and make it mention efivarfs.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMerge the old TODO and the new one.
Peter Jones [Wed, 5 Feb 2014 04:50:19 +0000 (23:50 -0500)]
Merge the old TODO and the new one.

Oops.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoUpdate urls in README.
Peter Jones [Wed, 5 Feb 2014 04:47:26 +0000 (23:47 -0500)]
Update urls in README.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoUpdate TODO.
Peter Jones [Wed, 5 Feb 2014 04:40:01 +0000 (23:40 -0500)]
Update TODO.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoGet rid of the 1024-byte limit on ESP file path.
Peter Jones [Wed, 5 Feb 2014 04:26:47 +0000 (23:26 -0500)]
Get rid of the 1024-byte limit on ESP file path.

Not that I think 1024 was something we were going to hit there, but...

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoHandle some other device paths.
Peter Jones [Wed, 5 Feb 2014 04:02:25 +0000 (23:02 -0500)]
Handle some other device paths.

Add support for Vendor-Defined Messaging Device Paths as well as
FVFILE() and FVVOL()

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoGet rid of 1024-byte limit for displaying variables as well.
Peter Jones [Wed, 5 Feb 2014 03:39:00 +0000 (22:39 -0500)]
Get rid of 1024-byte limit for displaying variables as well.

This basically makes all of unparse_path() and its derivatives into
snprintf()-like functions, so we don't have to have static buffers.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoAdd a TODO here so I can keep track of what is yet to be done.
Peter Jones [Tue, 4 Feb 2014 23:51:45 +0000 (18:51 -0500)]
Add a TODO here so I can keep track of what is yet to be done.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoTypo fix.
Peter Jones [Tue, 10 Sep 2013 18:46:00 +0000 (14:46 -0400)]
Typo fix.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoCorrectly fill out sa_family for MAC address device types.
Peter Jones [Tue, 10 Sep 2013 15:25:41 +0000 (11:25 -0400)]
Correctly fill out sa_family for MAC address device types.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoHandle virtio network devices.
Peter Jones [Fri, 6 Sep 2013 18:49:28 +0000 (14:49 -0400)]
Handle virtio network devices.

Just like virtio scsi devices, look up their bus/device/function by the
virtio device instead of the traditional way.

Signed-off-by: Peter Jones <pjones@redhat.com>
Tested-and-reviewed-by: Laszlo Ersek <lersek@redhat.com>
10 years ago'-h' is a valid option, recognize it
Laszlo Ersek [Mon, 9 Sep 2013 09:37:39 +0000 (11:37 +0200)]
'-h' is a valid option, recognize it

This completes commit e562a948.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
10 years agoIgnore patches.
Peter Jones [Fri, 6 Sep 2013 20:18:12 +0000 (16:18 -0400)]
Ignore patches.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoRemove 40-character limit on file paths in /boot.
Peter Jones [Fri, 6 Sep 2013 20:17:20 +0000 (16:17 -0400)]
Remove 40-character limit on file paths in /boot.

This is totally unnecessary now; the only real point before was
everything was fixed size to keep it within 1024.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoDon't allow negative boot numbers.
Peter Jones [Fri, 6 Sep 2013 18:46:18 +0000 (14:46 -0400)]
Don't allow negative boot numbers.

In the case where you typo the command line and do:

efibootmgr -b -a blah blah blah

instead of

efibootmgr -b 0001 -a blah blah blah

sscanf(..., "%X", &num) happily produces a successful return code and a
value of -10.  This later results in us creating a boot variable named
BootFFFFFFFF6 , which is clearly not okay.  So if we've got a negative
number there, it's probably not what the user wanted.

Bounds check the whole thing.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake make_linux_load_option() slightly more readable.
Peter Jones [Fri, 6 Sep 2013 18:16:24 +0000 (14:16 -0400)]
Make make_linux_load_option() slightly more readable.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake add_extra_args_file() work properly.
Peter Jones [Fri, 6 Sep 2013 15:31:03 +0000 (11:31 -0400)]
Make add_extra_args_file() work properly.

Two things:
1) make it actually return the data
2) _ascii() and _unicode() will get invoked in some cases, and they need
   to handle the case where they do nothing.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoAudit strlen() in append_extra_args_ascii() as well.
Peter Jones [Fri, 6 Sep 2013 15:23:16 +0000 (11:23 -0400)]
Audit strlen() in append_extra_args_ascii() as well.

Similar code, similar bugs.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoRestore old boot order behavior.
Peter Jones [Fri, 6 Sep 2013 15:13:39 +0000 (11:13 -0400)]
Restore old boot order behavior.

Previously we prepended rather than appending new elements to the boot
order.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoDo better error checking in read_boot_u16(), and simplify it.
Peter Jones [Fri, 6 Sep 2013 15:02:13 +0000 (11:02 -0400)]
Do better error checking in read_boot_u16(), and simplify it.

Why am I even doing this stupid bitshifting?

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix byte assignment in read_boot_u16().
Peter Jones [Fri, 6 Sep 2013 14:57:50 +0000 (10:57 -0400)]
Fix byte assignment in read_boot_u16().

It helps if you put the bytes in the right order, and the parenthesis
around the right things to keep them from being all zero.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMore work on append_extra_args_unicode()
Peter Jones [Fri, 6 Sep 2013 14:43:35 +0000 (10:43 -0400)]
More work on append_extra_args_unicode()

two problems:
1) strlen off-by-one
2) efichar_from_char() awesomely takes a length in bytes, returns in
   bytes, and operates on efi_char16_t sizes.  This can be somewhat
   confusing.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoYou really can't free something you put through realloc().
Peter Jones [Fri, 6 Sep 2013 14:24:22 +0000 (10:24 -0400)]
You really can't free something you put through realloc().

This should make '-u' work again.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix typo in arg parsing.
Peter Jones [Fri, 6 Sep 2013 14:10:18 +0000 (10:10 -0400)]
Fix typo in arg parsing.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoRemove some dead code.
Peter Jones [Fri, 6 Sep 2013 14:00:40 +0000 (10:00 -0400)]
Remove some dead code.

If anybody's looking for it, it's in git.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoClean up .gitignores some.
Peter Jones [Fri, 6 Sep 2013 13:01:14 +0000 (09:01 -0400)]
Clean up .gitignores some.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake --help also -h, and don't have it exit with an error status.
Peter Jones [Thu, 5 Sep 2013 19:53:06 +0000 (15:53 -0400)]
Make --help also -h, and don't have it exit with an error status.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake tilt_slashes() static.
Peter Jones [Thu, 5 Sep 2013 19:52:50 +0000 (15:52 -0400)]
Make tilt_slashes() static.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix uninitialized variable.
Peter Jones [Thu, 5 Sep 2013 18:29:35 +0000 (14:29 -0400)]
Fix uninitialized variable.

valgrind found a couple of errors, one of which fixes some odd behavior
with BootOrder I was seeing.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix minor compiler warning.
Peter Jones [Thu, 5 Sep 2013 18:16:42 +0000 (14:16 -0400)]
Fix minor compiler warning.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix completely wrong compiler warning.
Peter Jones [Thu, 5 Sep 2013 18:15:53 +0000 (14:15 -0400)]
Fix completely wrong compiler warning.

gcc's data flow analysis still kind of blows.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoMake the error case from make_boot_var() cleaner.
Peter Jones [Thu, 5 Sep 2013 17:46:43 +0000 (13:46 -0400)]
Make the error case from make_boot_var() cleaner.

bcl thinks it looks better at the end, and I agree.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoDon't do unnecessary math.
Peter Jones [Thu, 5 Sep 2013 17:41:31 +0000 (13:41 -0400)]
Don't do unnecessary math.

bcl found this one too - we know len % 5 is 4, because it's tested a few
lines up.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoFix error message that says "delete" on the "activate" case.
Peter Jones [Thu, 5 Sep 2013 17:39:17 +0000 (13:39 -0400)]
Fix error message that says "delete" on the "activate" case.

bcl found this reviewing it.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoUse libefivar.
Peter Jones [Wed, 4 Sep 2013 22:48:05 +0000 (18:48 -0400)]
Use libefivar.

Using libefivar divorces us from the kernel api, which is a very good
thing.  It also means we don't need to know about efi_status_t or efi
error types, or carry our own headers for describing variables.

This also makes device paths > 1024 bytes long work (on newer kernels)

Signed-off-by: Peter Jones <pjones@redhat.com>
Conflicts:
src/efibootmgr/efibootmgr.c
src/lib/efi.c

10 years agoIgnore some files so "git status" is clearer.
Peter Jones [Wed, 4 Sep 2013 22:46:56 +0000 (18:46 -0400)]
Ignore some files so "git status" is clearer.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoSilence some minor compiler warnings.
Peter Jones [Wed, 4 Sep 2013 22:46:34 +0000 (18:46 -0400)]
Silence some minor compiler warnings.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoRelease 0.6.1
Peter Jones [Mon, 13 Jan 2014 21:08:16 +0000 (16:08 -0500)]
Release 0.6.1

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoModernize "make tarball" for our glorious git future.
Peter Jones [Thu, 5 Sep 2013 18:01:25 +0000 (14:01 -0400)]
Modernize "make tarball" for our glorious git future.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years agoPrepping for move to GitHub. Updated documentation to refer to new maintainer and...
Daniel Jared Dominguez [Mon, 13 Jan 2014 19:20:56 +0000 (13:20 -0600)]
Prepping for move to GitHub. Updated documentation to refer to new maintainer and new git repository.

10 years agoFrom: Colin Watson <cjwatson@ubuntu.com>
Daniel Jared Dominguez [Mon, 13 Jan 2014 18:56:25 +0000 (12:56 -0600)]
From: Colin Watson <cjwatson@ubuntu.com>

Fix -w option to leave an existing unique MBR signature intact. This makes the
implementation match the documentation.

10 years agoFrom: Bdale Garbee <bdale@gag.com>
Daniel Jared Dominguez [Mon, 13 Jan 2014 18:45:42 +0000 (12:45 -0600)]
From: Bdale Garbee <bdale@gag.com>

change computeroutput to programlisting to fix man page formatting issue,
update rules to use docbook source for man page, closes Debian bug #680716

10 years agoFix unchecked malloc calls.
Jordan Hargrave [Fri, 18 Oct 2013 18:49:59 +0000 (13:49 -0500)]
Fix unchecked malloc calls.
Resolves: rhbz#715216
From Peter Jones@Redhat

10 years agoproduce virtio-scsi device paths under EDD 3.0
Jordan Hargrave [Fri, 18 Oct 2013 18:34:24 +0000 (13:34 -0500)]
produce virtio-scsi device paths under EDD 3.0
Patch from Laszlo Ersek@RedHat

10 years agoprevent out-of-bounds access with SCSI_IOCTL_GET_PCI
Jordan Hargrave [Fri, 18 Oct 2013 18:29:40 +0000 (13:29 -0500)]
prevent out-of-bounds access with SCSI_IOCTL_GET_PCI
Patch from Laszlo Ersek@RedHat

10 years agodisk_get_virt_pci(): generalize to arbitrary major & minor device numbers
Jordan Hargrave [Fri, 18 Oct 2013 18:15:46 +0000 (13:15 -0500)]
disk_get_virt_pci(): generalize to arbitrary major & minor device numbers
Patch from Laszlo Ersek@RedHat

10 years agodisk_info_from_fd(): group output parameters into struct disk_info
Jordan Hargrave [Fri, 18 Oct 2013 18:04:26 +0000 (13:04 -0500)]
disk_info_from_fd(): group output parameters into struct disk_info
Patch from Laszlo Ersek@RedHat

10 years agoproduce virtio-blk device paths under EDD 3.0
Jordan Hargrave [Fri, 18 Oct 2013 17:39:58 +0000 (12:39 -0500)]
produce virtio-blk device paths under EDD 3.0
Patch from Laszlo Ersek@RedHat

10 years agodisk_get_pci(): expose detected interface type
Jordan Hargrave [Fri, 18 Oct 2013 17:26:18 +0000 (12:26 -0500)]
disk_get_pci(): expose detected interface type
Patch from Laszlo Ersek@RedHat

10 years agodisk_info_from_fd(): get major/minor from buf.st_rdev
Jordan Hargrave [Fri, 18 Oct 2013 17:14:45 +0000 (12:14 -0500)]
disk_info_from_fd(): get major/minor from buf.st_rdev
Patch from Laszlo Ersek@RedHat

11 years agoAdd support for UNIX-style path names (forward-slash)
Jordan Hargrave [Tue, 2 Jul 2013 15:28:12 +0000 (10:28 -0500)]
Add support for UNIX-style path names (forward-slash)
Submitted by Keshav Padram [the.ridikulus.rat@gmail.com]

11 years agoUpdate manpage email
Jordan Hargrave [Tue, 29 Jan 2013 20:37:33 +0000 (14:37 -0600)]
Update manpage email

11 years agoBump efibootmgr version to include latest changes
Jordan Hargrave [Wed, 23 Jan 2013 18:36:32 +0000 (12:36 -0600)]
Bump efibootmgr version to include latest changes

11 years agoAdd patches from fedora release
Jordan Hargrave [Thu, 29 Nov 2012 16:11:43 +0000 (10:11 -0600)]
Add patches from fedora release
* Wed Nov 28 2012 Matthew Garrett <mjg59@srcf.ucam.org> - 0.5.4-14
- efibootmgr-0.5.4-Work-around-broken-Apple-firmware.patch
  Resolves: #873629
- efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch - improve
  spec conformance

12 years agoFrom: Lane Winner<lane.winner@oracle.com>
Jordan Hargrave [Tue, 24 Apr 2012 17:58:57 +0000 (12:58 -0500)]
From: Lane Winner<lane.winner@oracle.com>

make_boot_var does not check for failed status with create_variable.
This can result in a memory leak.
Additionally the user should be notified of the problem.

We encounter this issue on one system after filling up the UEFI boot list
with dummy devices.

The patch fix the problem. It was verified on a Mensa system using RHEL 6.0

Signed-off-by: Yinghai Lu<yinghai@kernel.org>
14 years agoHandle sector_size != 512.
Peter Jones [Wed, 14 Jul 2010 18:26:49 +0000 (11:26 -0700)]
Handle sector_size != 512.

Disks can have 4kB sectors now, so don't just bail out when that's the
case.

15 years agofix disk minor number discovery
Matt Domsch [Thu, 23 Jul 2009 19:20:19 +0000 (14:20 -0500)]
fix disk minor number discovery

Raymund Will noted disk_info_from_fd() incorrectly used logical &&
instead of bitwise & when obtaining the minor number.

Reported in https://bugzilla.novell.com/show_bug.cgi?id=524529#c1

15 years agofix minor memory leak
Matt Domsch [Thu, 23 Jul 2009 19:18:11 +0000 (14:18 -0500)]
fix minor memory leak

David Binderman noted new_data was being allocated but not freed.  Not
a big deal as the program exits soon thereafter (and is thus freed),
but worth fixing anyhow.

Fixes https://bugzilla.novell.com/show_bug.cgi?id=524529#c1

16 years agoupdate ChangeLog
Matt Domsch [Fri, 11 Jan 2008 21:09:12 +0000 (15:09 -0600)]
update ChangeLog

16 years agoreplacing elilo < 3.6-6, not -5
Matt Domsch [Fri, 11 Jan 2008 21:08:12 +0000 (15:08 -0600)]
replacing elilo < 3.6-6, not -5

per conversation with clumens.

16 years agoRPM spec rewrite for Fedora inclusion
Matt Domsch [Thu, 3 Jan 2008 18:19:28 +0000 (12:19 -0600)]
RPM spec rewrite for Fedora inclusion

efibootmgr is being split out of the elilo SRPM in Fedora, into its
own SRPM.

16 years agoMakefile cleanups
Matt Domsch [Thu, 3 Jan 2008 18:18:31 +0000 (12:18 -0600)]
Makefile cleanups

bump version

take an EXTRA_CFLAGS argument so rpmbuild can give us it's CFLAGS
without overriding ours.

exclude .git and *~ files from the tarball.

16 years agosrc/lib/efi.c: include linux/types.h
Matt Domsch [Thu, 3 Jan 2008 18:16:35 +0000 (12:16 -0600)]
src/lib/efi.c: include linux/types.h

patch from Fedora.

16 years agomake sure GPT_HEADER_SIGNATURE is a 64-bit value
Matt Domsch [Thu, 3 Jan 2008 18:15:18 +0000 (12:15 -0600)]
make sure GPT_HEADER_SIGNATURE is a 64-bit value

patch from Debian / Ubuntu 0.5.3-3ubuntu1.

16 years agoavoid more unaligned access warnings
Matt Domsch [Mon, 12 Nov 2007 19:31:32 +0000 (13:31 -0600)]
avoid more unaligned access warnings

16 years agocleanup a few unaligned access warnings
Matt Domsch [Mon, 12 Nov 2007 18:25:42 +0000 (12:25 -0600)]
cleanup a few unaligned access warnings

16 years agocleanup exit values a little
Matt Domsch [Mon, 12 Nov 2007 18:12:37 +0000 (12:12 -0600)]
cleanup exit values a little

16 years agopatch to make efibootmgr have non-zero exit code on errors
Doug Chapman [Mon, 12 Nov 2007 16:32:12 +0000 (11:32 -0500)]
patch to make efibootmgr have non-zero exit code on errors

We have some automated tools that use efibootmgr which are having a hard
time detecting when efibootmgr fails since it exits with 0 on many
failures.  This patch catches (most) errors and exits with non-zero.  I
also added several error messages for to make it more obvious what was
wrong with the command line arguments.

Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>