summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2017-12-01 16:10:33 +0100
committerAlexander Graf <agraf@suse.de>2017-12-01 22:30:47 +0100
commitc034b7fd419010116f2b6ac3b8e3b725f425d92c (patch)
tree2c4f9c68761b3573d716ed1e16f633a8eff77e0d /env
parent1a0b4d22a99f9b296528118dec8211490f166ef9 (diff)
efi_loader: Fix partition offsets
Commit 884bcf6f65 (efi_loader: use proper device-paths for partitions) tried to introduce the el torito scheme to all partition table types: Spawn individual disk objects for each partition on a disk. Unfortunately, that code ended up creating partitions with offset=0 which meant that anyone accessing these objects gets data from the raw block device instead of the partition. Furthermore, all the el torito logic to spawn devices for partitions was duplicated. So let's merge the two code paths and give partition disk objects good offsets to work from, so that payloads can actually make use of them. Fixes: 884bcf6f65 (efi_loader: use proper device-paths for partitions) Reported-by: Yousaf Kaukab <yousaf.kaukab@suse.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'env')
0 files changed, 0 insertions, 0 deletions